Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tidy-moons-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@plexus-ms/config": minor
---

Add the `tsconfig-cli` subpath export: the shared TypeScript compiler options for Node CLI and library packages that build to `dist` — `"extends": "@plexus-ms/config/tsconfig-cli"`. It emits (`declaration`, `declarationMap`, `sourceMap`) under `NodeNext` resolution, so source must use explicit `.js` import specifiers. `outDir`/`rootDir` and `include`/`exclude` stay in the extending package, since TypeScript resolves those paths relative to the file that declares them. Requires `@types/node`, which the config pins via `"types": ["node"]`.
2 changes: 2 additions & 0 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"license": "GPL-3.0-or-later",
"files": [
"biome.json",
"tsconfig-cli.json",
"tsconfig-next.json"
],
"exports": {
"./biome": "./biome.json",
"./tsconfig-cli": "./tsconfig-cli.json",
"./tsconfig-next": "./tsconfig-next.json"
},
"repository": {
Expand Down
20 changes: 20 additions & 0 deletions packages/config/tsconfig-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "ES2023",
"lib": ["ES2023"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"types": ["node"],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,
"skipLibCheck": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"incremental": true
}
}