mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
Merge 96448587a5
into 0d3d4f5466
This commit is contained in:
commit
0a675a8954
5 changed files with 17 additions and 0 deletions
|
@ -411,6 +411,12 @@ async fn install_global(
|
||||||
.load_and_type_check_files(&[install_flags_global.module_url.clone()])
|
.load_and_type_check_files(&[install_flags_global.module_url.clone()])
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
if matches!(flags.config_flag, ConfigFlag::Discover)
|
||||||
|
&& cli_options.workspace().deno_jsons().next().is_some()
|
||||||
|
{
|
||||||
|
log::warn!("{} discovered config file will be ignored in the installed command. Use the --config flag if you wish to include it.", crate::colors::yellow("Warning"));
|
||||||
|
}
|
||||||
|
|
||||||
// create the install shim
|
// create the install shim
|
||||||
create_install_shim(http_client, &flags, install_flags_global).await
|
create_install_shim(http_client, &flags, install_flags_global).await
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"tempDir": true,
|
||||||
|
"args": "install --root ./bins -g --name my-cli main.js",
|
||||||
|
"output": "install.out"
|
||||||
|
}
|
2
tests/specs/install/global/warn_config_file/deno.json
Normal file
2
tests/specs/install/global/warn_config_file/deno.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
3
tests/specs/install/global/warn_config_file/install.out
Normal file
3
tests/specs/install/global/warn_config_file/install.out
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Warning discovered config file will be ignored in the installed command. Use the --config flag if you wish to include it.
|
||||||
|
✅ Successfully installed my-cli
|
||||||
|
[WILDCARD]
|
1
tests/specs/install/global/warn_config_file/main.js
Normal file
1
tests/specs/install/global/warn_config_file/main.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log(1);
|
Loading…
Add table
Reference in a new issue