mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
430 B
TypeScript
27 lines
430 B
TypeScript
// @Filename: /tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"module": "nodenext",
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"declaration": true,
|
|
},
|
|
"include": ["src/*.ts"]
|
|
}
|
|
|
|
// @Filename: /package.json
|
|
{
|
|
"name": "pkg",
|
|
"type": "module",
|
|
"imports": {
|
|
"#subpath": "./dist/subpath.js"
|
|
}
|
|
}
|
|
|
|
// @Filename: /src/subpath.ts
|
|
export const foo = "foo";
|
|
|
|
// @Filename: /src/index.ts
|
|
import { foo } from "#subpath";
|
|
foo;
|