forked from mathieudutour/github-tag-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
33 lines (33 loc) · 1.3 KB
/
tsconfig.json
File metadata and controls
33 lines (33 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
// NOTE: This config is now **type-check only** (`noEmit: true`).
// The shipping `lib/main.js` artefact is produced by `scripts/bundle.mjs`
// (esbuild), which inlines every dependency into a single self-contained
// ESM file so the GitHub Actions runtime — which runs `lib/main.js`
// directly without executing `npm install` — can resolve `@actions/core`,
// `@actions/github`, `@semantic-release/*`, etc. without any
// `node_modules` on the runner.
//
// `module: NodeNext` + `"type": "module"` still apply to source files:
// relative imports in `src/**/*.ts` need explicit `.js` extensions so
// that `npm run typecheck` (and ESLint's type-aware rules) see the same
// module graph esbuild bundles.
"compilerOptions": {
"target": "ES2023",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2023"],
"rootDir": "./src",
"strict": true,
"noEmit": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"typeRoots": ["./node_modules/@types", "./types"]
},
"include": ["src/**/*", "types/**/*"],
"exclude": ["node_modules", "lib", "**/*.test.ts"]
}