tsconfig.node.json
964 bytes
| 1 | // TSConfig for modules that run in Node.js environment via either transpilation or type-stripping. |
|---|---|
| 2 | { |
| 3 | "extends": "@tsconfig/node24/tsconfig.json", |
| 4 | "include": [ |
| 5 | "vite.config.*", |
| 6 | "vitest.config.*", |
| 7 | "cypress.config.*", |
| 8 | "playwright.config.*", |
| 9 | "eslint.config.*" |
| 10 | ], |
| 11 | "compilerOptions": { |
| 12 | // Most tools use transpilation instead of Node.js's native type-stripping. |
| 13 | // Bundler mode provides a smoother developer experience. |
| 14 | "module": "preserve", |
| 15 | "moduleResolution": "bundler", |
| 16 | |
| 17 | // Include Node.js types and avoid accidentally including other `@types/*` packages. |
| 18 | "types": ["node"], |
| 19 | |
| 20 | // Disable emitting output during `vue-tsc --build`, which is used for type-checking only. |
| 21 | "noEmit": true, |
| 22 | |
| 23 | // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking. |
| 24 | // Specified here to keep it out of the root directory. |
| 25 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo" |
| 26 | } |
| 27 | } |
| 28 | |