diff options
| author | Daniel Andreas Wang <danielaw@tilde.club> | 2026-03-12 18:31:40 +0100 |
|---|---|---|
| committer | Daniel Andreas Wang <danielaw@tilde.club> | 2026-03-12 18:31:40 +0100 |
| commit | ad9c2429def17cd73d0cc22837ef278abcd4f64a (patch) | |
| tree | a45f23c88828feeaebae33bc7da04bbe606acfef /tsconfig.node.json | |
first commit
Diffstat (limited to 'tsconfig.node.json')
| -rw-r--r-- | tsconfig.node.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..5988839 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,28 @@ +// TSConfig for modules that run in Node.js environment via either transpilation or type-stripping. +{ + "extends": "@tsconfig/node24/tsconfig.json", + "include": [ + "vite.config.*", + "vitest.config.*", + "cypress.config.*", + "nightwatch.conf.*", + "playwright.config.*", + "eslint.config.*" + ], + "compilerOptions": { + // Most tools use transpilation instead of Node.js's native type-stripping. + // Bundler mode provides a smoother developer experience. + "module": "preserve", + "moduleResolution": "bundler", + + // Include Node.js types and avoid accidentally including other `@types/*` packages. + "types": ["node"], + + // Disable emitting output during `vue-tsc --build`, which is used for type-checking only. + "noEmit": true, + + // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking. + // Specified here to keep it out of the root directory. + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo" + } +} |
