From 678ac5757b8283a2bb7bd0158f3c5273ea1e7eec Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 26 Oct 2022 09:55:26 -0400 Subject: fix(compile): show an error when using npm specifiers (#16430) Closes #16427 --- cli/tests/integration/npm_tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/tests/integration/npm_tests.rs') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 8fa79d06c..722cbdb39 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -711,6 +711,14 @@ fn ensure_registry_files_local() { } } +itest!(compile_errors { + args: "compile -A --quiet --unstable npm/esm/main.js", + output_str: Some("error: npm specifiers have not yet been implemented for deno compile (https://github.com/denoland/deno/issues/15960). Found: npm:chalk@5\n"), + exit_code: 1, + envs: env_vars(), + http_server: true, +}); + fn env_vars_no_sync_download() -> Vec<(String, String)> { vec![ ("DENO_NODE_COMPAT_URL".to_string(), util::std_file_url()), -- cgit v1.2.3