1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/npm/workspace_basic/b/main.ts
David Sherret f4b9d85862
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
2024-07-17 09:13:22 -04:00

7 lines
155 B
TypeScript

import * as a1 from "@denotest/a";
import * as a2 from "npm:@denotest/a@1";
import * as c from "@denotest/c";
a1.sayHello();
a2.sayHello();
c.sayHello();