mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24: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
7 lines
155 B
TypeScript
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();
|