Skip to content

Commit

Permalink
fix: reorder NODE_OPTIONS (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
MickVanDuijn committed May 12, 2023
1 parent 0b6bd06 commit 80c100b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!process.env.NODE_OPTIONS?.includes('--loader ts-node/esm')) {
await new Promise((resolve, reject) => {
const subprocess = spawn(process.argv[0], [...process.argv.slice(1)], {
cwd: process.cwd(),
env: { ...process.env, NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --loader ts-node/esm/transpile-only` },
env: { ...process.env, NODE_OPTIONS: `--loader ts-node/esm/transpile-only ${process.env.NODE_OPTIONS ?? ''}` },
stdio: 'inherit',
})

Expand Down

0 comments on commit 80c100b

Please sign in to comment.