Make only/ignore relative to cwd/config file and move only/ignore checking all to core. (#5487)

* Make only/ignore relative to cwd/config file and move only/ignore checking all to core.
This commit is contained in:
Logan Smyth
2017-03-16 23:22:43 -07:00
committed by GitHub
parent b6194a8533
commit 39c862c195
20 changed files with 255 additions and 387 deletions

View File

@@ -1,3 +1,3 @@
{
"args": ["src", "--out-dir", "lib", "--ignore", "/bar/*"]
"args": ["src", "--out-dir", "lib", "--ignore", "src/bar"]
}

View File

@@ -91,7 +91,7 @@ const buildTest = function (binName, testName, opts) {
}
if (binName === "babel-node") {
args.push("--only", "packages/*/test");
args.push("--only", "../../../../packages/*/test");
}
args = args.concat(opts.args);
@@ -119,7 +119,7 @@ const buildTest = function (binName, testName, opts) {
}
if (err) {
err.message = args.join(" ") + ": " + err.message;
err.message = args.map((arg) => `"${ arg }"`).join(" ") + ": " + err.message;
}
callback(err);