mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
feat(task): adjust warning (#17904)
Put it on a single line and remove coloring.
This commit is contained in:
parent
451b45ee3a
commit
4773d07974
5 changed files with 5 additions and 10 deletions
|
@ -1,7 +1,6 @@
|
|||
Download http://localhost:4545/npm/registry/@denotest/bin
|
||||
Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz
|
||||
Warning Currently only basic package.json `scripts` are supported.
|
||||
Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Task bin cli-esm testing this out "asdf"
|
||||
testing
|
||||
this
|
||||
|
|
3
cli/tests/testdata/task/npx/non_existent.out
vendored
3
cli/tests/testdata/task/npx/non_existent.out
vendored
|
@ -1,4 +1,3 @@
|
|||
Warning Currently only basic package.json `scripts` are supported.
|
||||
Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Task non-existent npx this-command-should-not-exist-for-you
|
||||
npx: could not resolve command 'this-command-should-not-exist-for-you'
|
||||
|
|
3
cli/tests/testdata/task/npx/on_own.out
vendored
3
cli/tests/testdata/task/npx/on_own.out
vendored
|
@ -1,4 +1,3 @@
|
|||
Warning Currently only basic package.json `scripts` are supported.
|
||||
Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Task on-own npx
|
||||
npx: missing command
|
||||
|
|
3
cli/tests/testdata/task/package_json/bin.out
vendored
3
cli/tests/testdata/task/package_json/bin.out
vendored
|
@ -1,8 +1,7 @@
|
|||
Download http://localhost:4545/npm/registry/@denotest/bin
|
||||
Download http://localhost:4545/npm/registry/@denotest/bin/0.5.0.tgz
|
||||
Download http://localhost:4545/npm/registry/@denotest/bin/1.0.0.tgz
|
||||
Warning Currently only basic package.json `scripts` are supported.
|
||||
Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.
|
||||
Task bin @denotest/bin hi && cli-esm testing this out && npx cli-cjs test "extra"
|
||||
hi
|
||||
testing
|
||||
|
|
|
@ -72,10 +72,9 @@ pub async fn execute_script(
|
|||
};
|
||||
let script = get_script_with_args(script, &ps);
|
||||
log::info!(
|
||||
"{} Currently only basic package.json `scripts` are supported.",
|
||||
"{} Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release.",
|
||||
colors::yellow("Warning"),
|
||||
);
|
||||
log::info!("{}", colors::gray("Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in the upcoming release."));
|
||||
output_task(task_name, &script);
|
||||
let seq_list = deno_task_shell::parser::parse(&script)
|
||||
.with_context(|| format!("Error parsing script '{task_name}'."))?;
|
||||
|
|
Loading…
Reference in a new issue