tsconfig-vite-node
v1.2.0
Published
A base TSConfig for Node apps developed with vite-node and/or built with vite.
Readme
tsconfig-vite-node
An opinionated TSConfig for Node.js applications developed with vite-node and/or built with vite.
Highlights:
- All targets are set to
ESNext(meaning whatever the current Node.js interpreter supports). moduleResolutionis set to"Bundler"(allows imports without file extensions).strictandnoUncheckedIndexedAccessare enabled by default.
Install
npm install tsconfig-vite-nodeUse
In tsconfig.json:
{
"extends": "tsconfig-vite-node"
}In package.json:
{
"type": "module",
"scripts": {
"dev": "vite-node --watch src/server.ts"
}
}TODO: Document building with Vite.
