Skip to content

Commit

Permalink
Remove -i from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 8, 2019
1 parent 2e99c50 commit 06c7751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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'])
}

/**
Expand Down

0 comments on commit 06c7751

Please sign in to comment.