summaryrefslogtreecommitdiff
path: root/tests/specs/add/package_json_and_deno_json/add.out
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-09-06 10:18:13 -0700
committerGitHub <noreply@github.com>2024-09-06 17:18:13 +0000
commit51f5f5789b3b00b327ee7130dc259d24ee631851 (patch)
treeab6975ae1a49a3c036e99950947ec987e6d64edd /tests/specs/add/package_json_and_deno_json/add.out
parentf0a3d206422af3177e0f36ed22802c1ccc6f7654 (diff)
feat(add): Add npm packages to package.json if present (#25477)
Closes https://github.com/denoland/deno/issues/25321 Ended up being a larger refactoring, since we're now juggling (potentially) two config files in the same `add`, instead of choosing one. I don't love the shape of the code, but I think it's good enough Some smaller side improvements: - `deno remove` supports `jsonc` - `deno install --dev` will be a really simple change - if `deno remove` removes the last import/dependency in the `imports`/`dependencies`/`devDependencies` field, it removes the field instead of leaving an empty object
Diffstat (limited to 'tests/specs/add/package_json_and_deno_json/add.out')
-rw-r--r--tests/specs/add/package_json_and_deno_json/add.out12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/add/package_json_and_deno_json/add.out b/tests/specs/add/package_json_and_deno_json/add.out
new file mode 100644
index 000000000..5577a55ac
--- /dev/null
+++ b/tests/specs/add/package_json_and_deno_json/add.out
@@ -0,0 +1,12 @@
+[UNORDERED_START]
+Add npm:@denotest/esm-basic@1.0.0
+Add jsr:@denotest/add@1.0.0
+Add npm:@denotest/say-hello@1.0.0
+Download http://localhost:4260/@denotest/esm-basic
+Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
+Download http://localhost:4260/@denotest/say-hello
+Download http://localhost:4260/@denotest/say-hello/1.0.0.tgz
+Initialize @denotest/esm-basic@1.0.0
+Initialize @denotest/say-hello@1.0.0
+Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
+[UNORDERED_END]