summaryrefslogtreecommitdiff
path: root/tests/specs/npm/workspace_basic/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-17 09:13:22 -0400
committerGitHub <noreply@github.com>2024-07-17 09:13:22 -0400
commitf4b9d8586215fc07c28998e5d896fefa876139b7 (patch)
tree9ee42eb4bb62af04b1c3b049cd179dfa6fe908bb /tests/specs/npm/workspace_basic/main.ts
parent078def0ff8501bb07f3f286515acd8c6a2181037 (diff)
fix(workspace): support resolving bare specifiers to npm pkgs within a workspace (#24611)
This makes bare specifiers for npm packages work when inside a workspace, which emulates the same behaviour as when there's a node_modules directory. The bare specifier can be overwritten by specifying an import map entry or package.json dependency entry. * https://github.com/denoland/deno_config/pull/88 Closes #24605
Diffstat (limited to 'tests/specs/npm/workspace_basic/main.ts')
-rw-r--r--tests/specs/npm/workspace_basic/main.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/specs/npm/workspace_basic/main.ts b/tests/specs/npm/workspace_basic/main.ts
new file mode 100644
index 000000000..316503b9c
--- /dev/null
+++ b/tests/specs/npm/workspace_basic/main.ts
@@ -0,0 +1,6 @@
+// should resolve these as bare specifiers within the workspace
+import * as a from "@denotest/a";
+import * as c from "@denotest/c";
+
+a.sayHello();
+c.sayHello();