diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-08-24 13:44:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 13:44:38 -0400 |
commit | 348291f5eccfa19fde67e16bc5d706b5f465da09 (patch) | |
tree | 30547118c514e138bcf674e8a950718b09d7c2c1 /cli/tests/testdata | |
parent | 18fcef8b294f98df5eb555fb166afafebeaed71f (diff) |
fix(npm): always require --unstable flag even for esm (#15583)
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/npm/no_unstable/main.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/npm/no_unstable/main.ts | 3 |
2 files changed, 4 insertions, 0 deletions
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")); |