From 7cbcafb6f765f859ea10c682867cc049157f64dd Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sat, 28 Jan 2023 20:19:16 +0100 Subject: [PATCH] dbmodel added to build --- .github/workflows/build-npm.yaml | 5 +++++ packages/dbmodel/.gitignore | 2 +- packages/dbmodel/LICENSE | 21 +++++++++++++++++++++ packages/dbmodel/package.json | 5 +++++ setCurrentVersion.js | 1 + 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 packages/dbmodel/LICENSE diff --git a/.github/workflows/build-npm.yaml b/.github/workflows/build-npm.yaml index 17876bd2a..a97e7873f 100644 --- a/.github/workflows/build-npm.yaml +++ b/.github/workflows/build-npm.yaml @@ -94,6 +94,11 @@ jobs: run: | npm publish + - name: Publish dbmodel + working-directory: packages/dbmodel + run: | + npm publish + - name: Publish dbgate-plugin-csv working-directory: plugins/dbgate-plugin-csv run: | diff --git a/packages/dbmodel/.gitignore b/packages/dbmodel/.gitignore index fac75c15a..830f58170 100644 --- a/packages/dbmodel/.gitignore +++ b/packages/dbmodel/.gitignore @@ -1 +1 @@ -testdata/db \ No newline at end of file +testdata \ No newline at end of file diff --git a/packages/dbmodel/LICENSE b/packages/dbmodel/LICENSE new file mode 100644 index 000000000..dfe69fe23 --- /dev/null +++ b/packages/dbmodel/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 dbshell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/dbmodel/package.json b/packages/dbmodel/package.json index b0d1ea3f9..b5da6cd1e 100644 --- a/packages/dbmodel/package.json +++ b/packages/dbmodel/package.json @@ -23,6 +23,11 @@ "dbmodel:deploy": "cross-env DEVMODE=1 node ./bin/dbmodel.js deploy testdata/db -e postgres@dbgate-plugin-postgres -s localhost -u postgres -p Pwd2020Db -d deployed", "dbmodel:build": "cross-env DEVMODE=1 node ./bin/dbmodel.js build testdata/db testdata/db.sql -e postgres@dbgate-plugin-postgres " }, + "files": [ + "LICENSE", + "README.md", + "bin" + ], "dependencies": { "commander": "^10.0.0", "dbgate-api": "^5.0.0-alpha.1", diff --git a/setCurrentVersion.js b/setCurrentVersion.js index 377bc8f03..2e21fd54a 100644 --- a/setCurrentVersion.js +++ b/setCurrentVersion.js @@ -42,6 +42,7 @@ changePackageFile('packages/datalib', json.version); changePackageFile('packages/dbgate', json.version); changePackageFile('packages/serve', json.version); changePackageFile('packages/filterparser', json.version); +changePackageFile('packages/dbmodel', json.version); changePackageFile('plugins/dbgate-plugin-csv', json.version); changePackageFile('plugins/dbgate-plugin-xml', json.version);