diff --git a/src/bundling/pre-gyp-find-rewrite.ts b/src/bundling/pre-gyp-find-rewrite.ts new file mode 100644 index 0000000..8ad1dfb --- /dev/null +++ b/src/bundling/pre-gyp-find-rewrite.ts @@ -0,0 +1 @@ +//TODO diff --git a/src/releases.ts b/src/releases.ts index 0024134..c203ff0 100644 --- a/src/releases.ts +++ b/src/releases.ts @@ -32,7 +32,6 @@ async function getJson(url: string, options?: any) { return JSON.parse((await got(url, options)).body) as T } -//TODO only build the latest of each major...? function isBuildableVersion(version: string) { const major = +version.split('.')[0] return !~[0, 1, 2, 3, 4, 5, 7].indexOf(major) || version === '4.8.4' diff --git a/src/steps/shim.ts b/src/steps/shim.ts index 312d6cc..99f480a 100644 --- a/src/steps/shim.ts +++ b/src/steps/shim.ts @@ -23,7 +23,7 @@ export default function(compiler: NexeCompiler, next: () => Promise) { //compiler.shims.push(wrap('{/{replace:lib/steps/shim-require.js}}')) - if (compiler.options.fakeArgv) { + if (compiler.options.fakeArgv !== false) { const nty = !process.stdin.isTTY const input = nty ? '[stdin]' : compiler.options.input compiler.shims.push(