summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/lock_v2_dynamic_imports.json
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-19 23:30:44 +0200
committerGitHub <noreply@github.com>2022-10-19 23:30:44 +0200
commit973069b341de65e8e32b91072ff5a745fe7e704a (patch)
tree48fef8a8e9792b26f2d438b0769c99184d3493a7 /cli/tests/testdata/run/lock_v2_dynamic_imports.json
parente3a30954811238ce55a9d0f8b193c3a58535b72d (diff)
feat: Add new lockfile format (#16349)
Introduces a new lockfile format that will be used to support locking "npm" dependencies. Currently the format looks as follows: ``` // This file is automatically generated by Deno, do not edit its contents // manually. This file should be commited to your repository. { "version": "2", "remote": { "https://deno.land/std@0.160.0/http/server.ts": "asdwetsw44523asdfgfas..", "https://deno.land/std@0.160.0/http/file_server.ts": "asdwetsw44523asdfgfas.." } } ``` A follow up PR will add "npm" key that will be used to store information related to "npm" dependencies and their resolution. The new format is used when `--lock-write` is present, if user tries to load a lock file using the old format it will still work.
Diffstat (limited to 'cli/tests/testdata/run/lock_v2_dynamic_imports.json')
-rw-r--r--cli/tests/testdata/run/lock_v2_dynamic_imports.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/lock_v2_dynamic_imports.json b/cli/tests/testdata/run/lock_v2_dynamic_imports.json
new file mode 100644
index 000000000..eadbee272
--- /dev/null
+++ b/cli/tests/testdata/run/lock_v2_dynamic_imports.json
@@ -0,0 +1,9 @@
+{
+ "version": "2",
+ "remote": {
+ "http://127.0.0.1:4545/run/013_dynamic_import.ts": "3f83e653329dc1f963761a986997d710b9763f667fc243eef89b3a5decacda30",
+ "http://127.0.0.1:4545/subdir/mod1.ts": "bfc1037b02c99abc20367f739bca7455813a5950066abd77965bff33b6eece0f",
+ "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
+ "http://127.0.0.1:4545/subdir/subdir2/mod2.ts": "bad"
+ }
+}