From 348291f5eccfa19fde67e16bc5d706b5f465da09 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 24 Aug 2022 13:44:38 -0400 Subject: fix(npm): always require --unstable flag even for esm (#15583) --- cli/tests/testdata/npm/no_unstable/main.out | 1 + cli/tests/testdata/npm/no_unstable/main.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 cli/tests/testdata/npm/no_unstable/main.out create mode 100644 cli/tests/testdata/npm/no_unstable/main.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/npm/no_unstable/main.out b/cli/tests/testdata/npm/no_unstable/main.out new file mode 100644 index 000000000..5a5a4e5a7 --- /dev/null +++ b/cli/tests/testdata/npm/no_unstable/main.out @@ -0,0 +1 @@ +error: Unstable use of npm specifiers. The --unstable flag must be provided. diff --git a/cli/tests/testdata/npm/no_unstable/main.ts b/cli/tests/testdata/npm/no_unstable/main.ts new file mode 100644 index 000000000..bb14e62c5 --- /dev/null +++ b/cli/tests/testdata/npm/no_unstable/main.ts @@ -0,0 +1,3 @@ +import chalk from "npm:chalk@5"; + +console.log(chalk.green("hello")); -- cgit v1.2.3