Skip to content

Commit 36f0be0

Browse files
author
Alex Carp
committed
Add cache-directory to string flags
This fixes an issue where it is currently impossible to specify cache-directory, because it gets passed to the chile node process. It fails like so: ``` $ ts-node-dev --cache-directory=/foo ./src/server Using ts-node version 8.10.2, typescript version 3.9.7 /usr/local/bin/node: bad option: --cache-directory=/foo ```
1 parent 539631a commit 36f0be0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const devFlags = {
9292
'interval',
9393
'debounce',
9494
'watch',
95+
'cache-directory',
9596
],
9697
}
9798

@@ -132,7 +133,7 @@ const opts = minimist(devArgs, {
132133
alias: {
133134
...tsNodeAlias,
134135
'prefer-ts-exts': 'prefer-ts',
135-
},
136+
},
136137
default: {
137138
fork: true
138139
},

0 commit comments

Comments
 (0)