mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
547 B
TypeScript
32 lines
547 B
TypeScript
//// [tests/cases/compiler/nodeModulesPackageImportsRootWildcardNode16.ts] ////
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "package",
|
|
"private": true,
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": "./src/*"
|
|
}
|
|
}
|
|
//// [foo.ts]
|
|
export const foo = "foo";
|
|
//// [index.ts]
|
|
// esm format file
|
|
import { foo } from "#/foo.js";
|
|
foo;
|
|
|
|
|
|
//// [foo.js]
|
|
export const foo = "foo";
|
|
//// [index.js]
|
|
// esm format file
|
|
import { foo } from "#/foo.js";
|
|
foo;
|
|
|
|
|
|
//// [foo.d.ts]
|
|
export declare const foo = "foo";
|
|
//// [index.d.ts]
|
|
export {};
|