From 4a250b2f25d3e9fea31a1effb10d3fe07c3564ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 7 Sep 2022 15:33:51 +0200 Subject: feat: add --no-npm flag to disable npm: imports (#15673) This commit adds "--no-npm" flag, it's similar to "--no-remote" flag. This flag makes Deno error out if "npm:" specifier is encountered. --- cli/tests/testdata/npm/no_npm_after_first_run/main1.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cli/tests/testdata/npm/no_npm_after_first_run/main1.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/npm/no_npm_after_first_run/main1.ts b/cli/tests/testdata/npm/no_npm_after_first_run/main1.ts new file mode 100644 index 000000000..1ccc441a1 --- /dev/null +++ b/cli/tests/testdata/npm/no_npm_after_first_run/main1.ts @@ -0,0 +1,3 @@ +import chalk from "npm:chalk@5"; + +console.log(chalk); -- cgit v1.2.3