Skip to content

Commit

Permalink
Update node-pg-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
BriungRi committed Apr 10, 2024
1 parent 62e2ef6 commit d91bd0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/node-pg-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,14 @@ function readTsconfig() {
const config = fs.readFileSync(path.resolve(process.cwd(), tsconfigPath), { encoding: 'utf-8' })
tsconfig = json5 ? json5.parse(config) : JSON.parse(config)
if (tsconfig['ts-node']) {
tsconfig = { ...tsconfig, ...tsconfig['ts-node'] }
tsconfig = {
...tsconfig,
...tsconfig['ts-node']
compilerOptions: {
...(tsconfig.compilerOptions ?? {}),
...(tsconfig['ts-node'].compilerOptions ?? {}),
}
}
}
} catch (err) {
console.error("Can't load tsconfig.json:", err)
Expand Down

0 comments on commit d91bd0f

Please sign in to comment.