Skip to content

Commit

Permalink
fix(deps): bump to sql-schema-generator version w/ config input
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Feb 14, 2023
1 parent 15613a1 commit 5841b96
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
35 changes: 26 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/logic/run/runSqlSchemaGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5841b96

Please sign in to comment.