mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
dcebe5348d
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RyanCavanaugh <[email protected]> Co-authored-by: Ryan Cavanaugh <[email protected]>
43 lines
912 B
TypeScript
43 lines
912 B
TypeScript
// @module: nodenext
|
|
// @declaration: true
|
|
// @traceResolution: true
|
|
// @filename: package.json
|
|
{
|
|
"name": "package",
|
|
"private": true,
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": "./src/*"
|
|
}
|
|
}
|
|
// @filename: src/foo.ts
|
|
export const foo = "foo";
|
|
// @filename: src/features/bar.ts
|
|
export const bar = "bar";
|
|
// @filename: src/nested/deep/baz.ts
|
|
export const baz = "baz";
|
|
// @filename: index.ts
|
|
// esm format file
|
|
import { foo } from "#/foo.js";
|
|
import { bar } from "#/features/bar.js";
|
|
import { baz } from "#/nested/deep/baz.js";
|
|
foo;
|
|
bar;
|
|
baz;
|
|
// @filename: index.mts
|
|
// esm format file
|
|
import { foo } from "#/foo.js";
|
|
import { bar } from "#/features/bar.js";
|
|
import { baz } from "#/nested/deep/baz.js";
|
|
foo;
|
|
bar;
|
|
baz;
|
|
// @filename: index.cts
|
|
// cjs format file
|
|
import { foo } from "#/foo.js";
|
|
import { bar } from "#/features/bar.js";
|
|
import { baz } from "#/nested/deep/baz.js";
|
|
foo;
|
|
bar;
|
|
baz;
|