summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-09-07 15:33:51 +0200
committerGitHub <noreply@github.com>2022-09-07 15:33:51 +0200
commit4a250b2f25d3e9fea31a1effb10d3fe07c3564ae (patch)
treec15442571cf271af1014df061f1aa7f1984e0e89 /cli/tests/testdata/npm
parent3b1204eb2d9c5cdf21bb92f7c8923869477f0969 (diff)
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.
Diffstat (limited to 'cli/tests/testdata/npm')
-rw-r--r--cli/tests/testdata/npm/no_npm_after_first_run/main1.ts3
1 files changed, 3 insertions, 0 deletions
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);