feat(task): add warning about package.json scripts support (#17900)

This commit is contained in:
Bartek Iwańczuk 2023-02-23 16:41:28 +01:00 committed by GitHub
parent 998aeff3d4
commit 214bdbbc2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 0 deletions

View file

@ -71,6 +71,11 @@ pub async fn execute_script(
.to_owned(),
};
let script = get_script_with_args(script, &ps);
log::info!(
"{} Currently only basic package.json `scripts` are supported.",
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}'."))?;