summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/d_ext
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-10-17 00:26:38 +0900
committerGitHub <noreply@github.com>2023-10-17 00:26:38 +0900
commitcb70c4d0c4c97999deef0c13eaf91db635957517 (patch)
tree68d78653dbb1a3b6536eef652a86deb995b6dbab /cli/tests/testdata/npm/d_ext
parentbd238be4b5f26126fee8820d2a64c6660dfd6b6b (diff)
fix(node): resolve file.d specifiers in npm packages (#20918)
Makes type checking octokit work. Closes #20854
Diffstat (limited to 'cli/tests/testdata/npm/d_ext')
-rw-r--r--cli/tests/testdata/npm/d_ext/main.out3
-rw-r--r--cli/tests/testdata/npm/d_ext/main.ts3
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/d_ext/main.out b/cli/tests/testdata/npm/d_ext/main.out
new file mode 100644
index 000000000..e96c6e392
--- /dev/null
+++ b/cli/tests/testdata/npm/d_ext/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/npm/registry/@denotest/d-ext
+Download http://localhost:4545/npm/registry/@denotest/d-ext/1.0.0.tgz
+Check file:///[WILDCARD]/npm/d_ext/main.ts
diff --git a/cli/tests/testdata/npm/d_ext/main.ts b/cli/tests/testdata/npm/d_ext/main.ts
new file mode 100644
index 000000000..c92dbe065
--- /dev/null
+++ b/cli/tests/testdata/npm/d_ext/main.ts
@@ -0,0 +1,3 @@
+import { test } from "npm:@denotest/d-ext";
+
+console.log(test);