diff --git a/package-lock.json b/package-lock.json index a8c83a6..b937743 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "prettier": "2.8.1", "sql-code-generator": "0.9.3", "sql-schema-control": "1.5.1", - "sql-schema-generator": "0.21.4", + "sql-schema-generator": "0.22.0", "ts-jest": "29.0.3", "typescript": "4.9.4", "uuid": "3.3.2", @@ -14511,9 +14511,9 @@ } }, "node_modules/sql-schema-generator": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/sql-schema-generator/-/sql-schema-generator-0.21.4.tgz", - "integrity": "sha512-k5/t8w4/08APPYCe72BKHtMOdU7lJFSgoz3oSDh0Y5kVueuTrUly5Cw0Wozrby9OcWo5mWrvhxlpl2xHEeQhuQ==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/sql-schema-generator/-/sql-schema-generator-0.22.0.tgz", + "integrity": "sha512-01ogNIcQ+lLofifds/9UY8mQVbRQiaAZGZ/71q759bFsEy7V3vXc/JPTH/ZuJwg+6y2TtFSXWGk4eaviJ+2c5A==", "dev": true, "dependencies": { "@oclif/core": "2.0.11", @@ -14525,7 +14525,8 @@ "listr": "0.14.3", "oclif": "3.3.1", "type-fns": "0.7.0", - "uuid": "9.0.0" + "uuid": "9.0.0", + "yaml": "2.2.1" }, "bin": { "sql-schema-generator": "bin/run" @@ -14556,6 +14557,15 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/sql-schema-generator/node_modules/yaml": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", + "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/sql-strip-comments": { "version": "0.0.23", "resolved": "https://registry.npmjs.org/sql-strip-comments/-/sql-strip-comments-0.0.23.tgz", @@ -27265,9 +27275,9 @@ } }, "sql-schema-generator": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/sql-schema-generator/-/sql-schema-generator-0.21.4.tgz", - "integrity": "sha512-k5/t8w4/08APPYCe72BKHtMOdU7lJFSgoz3oSDh0Y5kVueuTrUly5Cw0Wozrby9OcWo5mWrvhxlpl2xHEeQhuQ==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/sql-schema-generator/-/sql-schema-generator-0.22.0.tgz", + "integrity": "sha512-01ogNIcQ+lLofifds/9UY8mQVbRQiaAZGZ/71q759bFsEy7V3vXc/JPTH/ZuJwg+6y2TtFSXWGk4eaviJ+2c5A==", "dev": true, "requires": { "@oclif/core": "2.0.11", @@ -27279,7 +27289,8 @@ "listr": "0.14.3", "oclif": "3.3.1", "type-fns": "0.7.0", - "uuid": "9.0.0" + "uuid": "9.0.0", + "yaml": "2.2.1" }, "dependencies": { "joi": { @@ -27300,6 +27311,12 @@ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", "dev": true + }, + "yaml": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", + "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", + "dev": true } } }, diff --git a/package.json b/package.json index e6605c8..508b84a 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "prettier": "2.8.1", "sql-code-generator": "0.9.3", "sql-schema-control": "1.5.1", - "sql-schema-generator": "0.21.4", + "sql-schema-generator": "0.22.0", "ts-jest": "29.0.3", "typescript": "4.9.4", "uuid": "3.3.2", diff --git a/src/logic/run/runSqlSchemaGenerator.ts b/src/logic/run/runSqlSchemaGenerator.ts index c94c280..60378e4 100644 --- a/src/logic/run/runSqlSchemaGenerator.ts +++ b/src/logic/run/runSqlSchemaGenerator.ts @@ -11,7 +11,7 @@ export const runSqlSchemaGenerator = async ({ // run the generator to actually generate the files shell.cd(config.rootDir); const result = await shell.exec( - `npx sql-schema-generator generate --declarations=${config.generates.schema.config.content.declarations} --target=${config.generates.schema.config.content.generates.sql.to}`, + `npx sql-schema-generator generate --config=${config.generates.schema.config.path}`, { silent: true }, ); if (result.stderr) throw new Error(result.stderr);