@preco21/tsconfig
Advanced tools
Comparing version 5.3.0 to 6.0.0
@@ -5,4 +5,7 @@ { | ||
"module": "Node16", | ||
"moduleResolution": "Node16" | ||
"moduleResolution": "Node16", | ||
"moduleDetection": "force", | ||
"resolveJsonModule": false // ESM doesn't yet support JSON modules. | ||
} | ||
} |
{ | ||
"name": "@preco21/tsconfig", | ||
"version": "5.3.0", | ||
"version": "6.0.0", | ||
"description": "Shared TypeScript config for @preco21", | ||
"author": "Plusb Preco <plusb21@gmail.com>", | ||
"main": "tsconfig.json", | ||
"author": "Preco Plusb <plusb21@gmail.com>", | ||
"main": "./tsconfig.json", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=18" | ||
}, | ||
"files": [ | ||
"tsconfig.json", | ||
"node.json" | ||
], | ||
"license": "MIT", | ||
@@ -14,6 +18,3 @@ "homepage": "https://github.com/preco21/tsconfig#readme", | ||
"bugs": "https://github.com/preco21/tsconfig/issues", | ||
"files": [ | ||
"tsconfig.json", | ||
"node.json" | ||
], | ||
"sideEffects": false, | ||
"keywords": [ | ||
@@ -20,0 +21,0 @@ "tsconfig", |
@@ -8,3 +8,3 @@ # tsconfig | ||
```bash | ||
$ npm install --save-dev @preco21/tsconfig | ||
npm install --save-dev @preco21/tsconfig | ||
``` | ||
@@ -29,12 +29,10 @@ | ||
## Snippets | ||
For *Node.js* setup without bundler: | ||
### For *common* setup | ||
```json | ||
{ | ||
"extends": "@preco21/tsconfig", | ||
"compilerOptions": { | ||
"extends": "@preco21/tsconfig/node", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"declaration": true, | ||
"declaration": false, | ||
"incremental": true | ||
@@ -47,13 +45,4 @@ }, | ||
### For *Node.js* setup | ||
```json | ||
{ | ||
"extends": "@preco21/tsconfig/node", | ||
... | ||
} | ||
``` | ||
## Motivation | ||
Heavily inspired by [`sindresorhus/tsconfig`](https://github.com/sindresorhus/tsconfig). |
{ | ||
"compilerOptions": { | ||
"target": "ES2021", | ||
"target": "ES2022", | ||
"module": "ESNext", | ||
@@ -10,9 +10,10 @@ | ||
"declaration": true, | ||
"sourceMap": true, | ||
"lib": [ | ||
"DOM", | ||
"DOM.Iterable", | ||
"ES2020" | ||
], | ||
"DOM", | ||
"DOM.Iterable", | ||
"ES2022" | ||
], | ||
@@ -19,0 +20,0 @@ "jsx": "preserve", |
3498
41
46