summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-08 19:30:36 -0500
committerGitHub <noreply@github.com>2024-01-08 19:30:36 -0500
commitbe888c068cbe42c1cb93d9885827dc97aa40d6f6 (patch)
tree038de43014e22006a7fd4bbed97c4843bbebd087 /cli/tests/testdata
parent0efb17b2cbd326abec1a053fb0eb81ce5c881eea (diff)
fix(task): do not eagerly auto-install packages in package.json when `"nodeModulesDir": false` (#21858)
There's no need to auto-install the package.json if the user is not using a node_modules directory. Closes #21850
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/task/package_json_node_modules_dir_false/bin.out2
-rw-r--r--cli/tests/testdata/task/package_json_node_modules_dir_false/deno.json3
-rw-r--r--cli/tests/testdata/task/package_json_node_modules_dir_false/package.json9
3 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/testdata/task/package_json_node_modules_dir_false/bin.out b/cli/tests/testdata/task/package_json_node_modules_dir_false/bin.out
new file mode 100644
index 000000000..d5d59d551
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_node_modules_dir_false/bin.out
@@ -0,0 +1,2 @@
+Task echo deno eval 'console.log(1)'
+1
diff --git a/cli/tests/testdata/task/package_json_node_modules_dir_false/deno.json b/cli/tests/testdata/task/package_json_node_modules_dir_false/deno.json
new file mode 100644
index 000000000..23a325cfc
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_node_modules_dir_false/deno.json
@@ -0,0 +1,3 @@
+{
+ "nodeModulesDir": false
+}
diff --git a/cli/tests/testdata/task/package_json_node_modules_dir_false/package.json b/cli/tests/testdata/task/package_json_node_modules_dir_false/package.json
new file mode 100644
index 000000000..081e076b9
--- /dev/null
+++ b/cli/tests/testdata/task/package_json_node_modules_dir_false/package.json
@@ -0,0 +1,9 @@
+{
+ "scripts": {
+ "echo": "deno eval 'console.log(1)'"
+ },
+ "dependencies": {
+ "@denotest/bin": "0.5",
+ "other": "npm:@denotest/bin@1.0"
+ }
+}