Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
fix exec local TS_NODE_TRANSPILE_ONLY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 24, 2018
1 parent 3869141 commit 0b5b54b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fns/execLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export function execLocal(path: string,

const defaultOpts: SpawnSyncOptionsWithStringEncoding = {
encoding: 'utf8',
env: process.env
env: Object.assign({}, process.env, {
TS_NODE_TRANSPILE_ONLY: '1'
})
};
const options: SpawnSyncOptionsWithStringEncoding = merge(defaultOpts, opts || {});

Expand Down

0 comments on commit 0b5b54b

Please sign in to comment.