feat: enable fake-argv by default

This commit is contained in:
calebboyd
2017-10-21 22:48:42 -05:00
parent ec734e4fb1
commit 52b58a107d
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
//TODO
-1
View File
@@ -32,7 +32,6 @@ async function getJson<T>(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'
+1 -1
View File
@@ -23,7 +23,7 @@ export default function(compiler: NexeCompiler, next: () => Promise<void>) {
//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(