Skip to content

Commit

Permalink
Accept ts-node overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
BriungRi committed Mar 17, 2023
1 parent 9331f6f commit 62e2ef6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/node-pg-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ function readTsconfig() {
// eslint-disable-next-line security/detect-non-literal-fs-filename
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'] }
}
} catch (err) {
console.error("Can't load tsconfig.json:", err)
}
Expand Down

0 comments on commit 62e2ef6

Please sign in to comment.