From f4b9d8586215fc07c28998e5d896fefa876139b7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 17 Jul 2024 09:13:22 -0400 Subject: 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 --- tests/specs/npm/workspace_basic/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/specs/npm/workspace_basic/main.ts (limited to 'tests/specs/npm/workspace_basic/main.ts') 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(); -- cgit v1.2.3