diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-06-26 21:53:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-26 15:53:17 -0400 |
| commit | a8d472f88e79703b1890bfdc87d7a3bb20b21428 (patch) | |
| tree | d2c2daf1261d6dbcce7852368550d56c134bc97e /cli/tests/testdata | |
| parent | fa935e553a9ec37d39d2274432a00f1b465cef0f (diff) | |
feat(lock): skip saving declaration files in the lockfile (#19447)
This is also a performance improvement because declaration file hashes
don't need to be stored in the lockfile.
Closes #19444
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/lockfile/no_dts/deno.lock.out | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/lockfile/no_dts/main.cache.out | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/lockfile/no_dts/main.ts | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/lockfile/no_dts/mod.d.ts | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/lockfile/no_dts/mod.js | 4 |
5 files changed, 16 insertions, 0 deletions
diff --git a/cli/tests/testdata/lockfile/no_dts/deno.lock.out b/cli/tests/testdata/lockfile/no_dts/deno.lock.out new file mode 100644 index 000000000..9bf784113 --- /dev/null +++ b/cli/tests/testdata/lockfile/no_dts/deno.lock.out @@ -0,0 +1,6 @@ +{ + "version": "2", + "remote": { + "http://localhost:4545/lockfile/no_dts/mod.js": "3f576f37a301d298c3032eb1835240bd83f3762db26fc1d358c5d67088d6ffc8" + } +} diff --git a/cli/tests/testdata/lockfile/no_dts/main.cache.out b/cli/tests/testdata/lockfile/no_dts/main.cache.out new file mode 100644 index 000000000..ee8ad33ab --- /dev/null +++ b/cli/tests/testdata/lockfile/no_dts/main.cache.out @@ -0,0 +1,2 @@ +Download http://localhost:4545/lockfile/no_dts/mod.js +Download http://localhost:4545/lockfile/no_dts/mod.d.ts diff --git a/cli/tests/testdata/lockfile/no_dts/main.ts b/cli/tests/testdata/lockfile/no_dts/main.ts new file mode 100644 index 000000000..7596e1e1a --- /dev/null +++ b/cli/tests/testdata/lockfile/no_dts/main.ts @@ -0,0 +1,3 @@ +import { test } from "http://localhost:4545/lockfile/no_dts/mod.js"; + +console.log(test()); diff --git a/cli/tests/testdata/lockfile/no_dts/mod.d.ts b/cli/tests/testdata/lockfile/no_dts/mod.d.ts new file mode 100644 index 000000000..7d3fae61c --- /dev/null +++ b/cli/tests/testdata/lockfile/no_dts/mod.d.ts @@ -0,0 +1 @@ +export declare function test(): number; diff --git a/cli/tests/testdata/lockfile/no_dts/mod.js b/cli/tests/testdata/lockfile/no_dts/mod.js new file mode 100644 index 000000000..8ac948700 --- /dev/null +++ b/cli/tests/testdata/lockfile/no_dts/mod.js @@ -0,0 +1,4 @@ +/// <reference types="./mod.d.ts" /> +export function test() { + return 5; +} |
