From 06c7751a94ffcbc9cc0292e71dd2410c0f74b81e Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Sat, 9 Nov 2019 07:36:05 +1000 Subject: [PATCH] Remove `-i` from environment variables --- src/bin.ts | 6 +++--- src/index.ts | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/bin.ts b/src/bin.ts index aa8f1b966..3e34fffc3 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -40,12 +40,13 @@ export function main (argv: string[]) { '--require': [String], // CLI options. - '--files': Boolean, '--help': Boolean, + '--script-mode': Boolean, '--version': arg.COUNT, // Project options. '--cwd': String, + '--files': Boolean, '--compiler': String, '--compiler-options': parse, '--project': String, @@ -57,7 +58,6 @@ export function main (argv: string[]) { '--skip-ignore': Boolean, '--prefer-ts-exts': Boolean, '--log-error': Boolean, - '--script-mode': Boolean, // Aliases. '-e': '--eval', @@ -86,13 +86,13 @@ export function main (argv: string[]) { '--require': requires = [], '--eval': code = undefined, '--print': print = false, + '--interactive': interactive = false, '--files': files = DEFAULTS.files, '--compiler': compiler = DEFAULTS.compiler, '--compiler-options': compilerOptions = DEFAULTS.compilerOptions, '--project': project = DEFAULTS.project, '--ignore-diagnostics': ignoreDiagnostics = DEFAULTS.ignoreDiagnostics, '--ignore': ignore = DEFAULTS.ignore, - '--interactive': interactive = DEFAULTS.interactive, '--transpile-only': transpileOnly = DEFAULTS.transpileOnly, '--pretty': pretty = DEFAULTS.pretty, '--skip-project': skipProject = DEFAULTS.skipProject, diff --git a/src/index.ts b/src/index.ts index 234c98f66..d7003f72b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -79,7 +79,7 @@ export const VERSION = require('../package.json').version * Registration options. */ export interface Options { - cwd?: string | null + cwd?: string scope?: boolean | null pretty?: boolean | null typeCheck?: boolean | null @@ -88,7 +88,6 @@ export interface Options { files?: boolean | null compiler?: string ignore?: string[] - interactive?: boolean | null project?: string skipIgnore?: boolean | null skipProject?: boolean | null @@ -138,8 +137,7 @@ export const DEFAULTS: Options = { ignoreDiagnostics: split(process.env['TS_NODE_IGNORE_DIAGNOSTICS']), typeCheck: yn(process.env['TS_NODE_TYPE_CHECK']), transpileOnly: yn(process.env['TS_NODE_TRANSPILE_ONLY']), - logError: yn(process.env['TS_NODE_LOG_ERROR']), - interactive: yn(process.env.TS_NODE_INTERACTIVE) + logError: yn(process.env['TS_NODE_LOG_ERROR']) } /**