Skip to content

Commit 06c7751

Browse files
committed
Remove -i from environment variables
1 parent 2e99c50 commit 06c7751

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/bin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ export function main (argv: string[]) {
4040
'--require': [String],
4141

4242
// CLI options.
43-
'--files': Boolean,
4443
'--help': Boolean,
44+
'--script-mode': Boolean,
4545
'--version': arg.COUNT,
4646

4747
// Project options.
4848
'--cwd': String,
49+
'--files': Boolean,
4950
'--compiler': String,
5051
'--compiler-options': parse,
5152
'--project': String,
@@ -57,7 +58,6 @@ export function main (argv: string[]) {
5758
'--skip-ignore': Boolean,
5859
'--prefer-ts-exts': Boolean,
5960
'--log-error': Boolean,
60-
'--script-mode': Boolean,
6161

6262
// Aliases.
6363
'-e': '--eval',
@@ -86,13 +86,13 @@ export function main (argv: string[]) {
8686
'--require': requires = [],
8787
'--eval': code = undefined,
8888
'--print': print = false,
89+
'--interactive': interactive = false,
8990
'--files': files = DEFAULTS.files,
9091
'--compiler': compiler = DEFAULTS.compiler,
9192
'--compiler-options': compilerOptions = DEFAULTS.compilerOptions,
9293
'--project': project = DEFAULTS.project,
9394
'--ignore-diagnostics': ignoreDiagnostics = DEFAULTS.ignoreDiagnostics,
9495
'--ignore': ignore = DEFAULTS.ignore,
95-
'--interactive': interactive = DEFAULTS.interactive,
9696
'--transpile-only': transpileOnly = DEFAULTS.transpileOnly,
9797
'--pretty': pretty = DEFAULTS.pretty,
9898
'--skip-project': skipProject = DEFAULTS.skipProject,

src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const VERSION = require('../package.json').version
7979
* Registration options.
8080
*/
8181
export interface Options {
82-
cwd?: string | null
82+
cwd?: string
8383
scope?: boolean | null
8484
pretty?: boolean | null
8585
typeCheck?: boolean | null
@@ -88,7 +88,6 @@ export interface Options {
8888
files?: boolean | null
8989
compiler?: string
9090
ignore?: string[]
91-
interactive?: boolean | null
9291
project?: string
9392
skipIgnore?: boolean | null
9493
skipProject?: boolean | null
@@ -138,8 +137,7 @@ export const DEFAULTS: Options = {
138137
ignoreDiagnostics: split(process.env['TS_NODE_IGNORE_DIAGNOSTICS']),
139138
typeCheck: yn(process.env['TS_NODE_TYPE_CHECK']),
140139
transpileOnly: yn(process.env['TS_NODE_TRANSPILE_ONLY']),
141-
logError: yn(process.env['TS_NODE_LOG_ERROR']),
142-
interactive: yn(process.env.TS_NODE_INTERACTIVE)
140+
logError: yn(process.env['TS_NODE_LOG_ERROR'])
143141
}
144142

145143
/**

0 commit comments

Comments
 (0)