Remove babel-node from babel-cli (#6251)
* Remove babel-node from babel-cli * Use new Array instead of Array for V8 optimization * Remove extraneous use strict clauses * Require babel-node in babel-cli * Remove babel-node from babel-cli * Require babel-node in babel-cli * Remove babel-node executable from babel-cli * Clean up babel-node from package.json
This commit is contained in:
committed by
Logan Smyth
parent
b115ea5da7
commit
2374062bbd
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--eval", "console.log([1, 2, 3].map(x => x * x));"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
console.log([1, 2, 3].map(x => x * x));
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["foo", "--extensions", ".bar"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--print", "--eval", "([1, 2, 3].map(x => x * x))"],
|
||||
"stdout": "[ 1, 4, 9 ]"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
console.log(process.argv[2]);
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["bar", "foo"],
|
||||
"stdout": "foo"
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"args": ["foo"]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
foo
|
||||
@@ -1,2 +0,0 @@
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"args": ["bar"]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
foo
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--eval","--print", "var a = 1;"],
|
||||
"stdout": "undefined"
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
var bar = () => console.log("bar");
|
||||
bar();
|
||||
@@ -1,5 +0,0 @@
|
||||
import "./bar2";
|
||||
import "./not_node_modules";
|
||||
|
||||
var foo = () => console.log("foo");
|
||||
foo();
|
||||
@@ -1,10 +0,0 @@
|
||||
/*
|
||||
The purpose of this file is to test that the node_modules check in the require
|
||||
hook doesn't mistakenly exclude something like "not_node_modules". To pass, this
|
||||
file merely needs to be transpiled. The transpiled code won't, and doesn't need
|
||||
to, execute without error. It won't execute because React will be undefined.
|
||||
*/
|
||||
try {
|
||||
<Some jsx="element" />;
|
||||
}
|
||||
catch (e) {}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"args": ["foo2"]
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
bar
|
||||
foo
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--expose-gc-as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--expose-gc", "--eval", "console.log(typeof global.gc)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--expose_gc_as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"args": ["--expose_gc", "--eval", "console.log(typeof global.gc)"],
|
||||
"stdout": "function"
|
||||
}
|
||||
@@ -127,10 +127,6 @@ const buildTest = function(binName, testName, opts) {
|
||||
args.push("--presets", presetLocs, "--plugins", pluginLocs);
|
||||
}
|
||||
|
||||
if (binName === "babel-node") {
|
||||
args.push("--only", "../../../../packages/*/test");
|
||||
}
|
||||
|
||||
args = args.concat(opts.args);
|
||||
|
||||
const spawn = child.spawn(process.execPath, args);
|
||||
|
||||
Reference in New Issue
Block a user