mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
f4b9d85862
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
6 lines
161 B
TypeScript
6 lines
161 B
TypeScript
// 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();
|