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:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--ignore", "/bar/*"]
|
||||
"args": ["src", "--out-dir", "lib", "--ignore", "src/bar"]
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user