@sindresorhus/tsconfig
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "@sindresorhus/tsconfig", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Shared TypeScript config for my projects", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=14" | ||
}, | ||
@@ -17,0 +17,0 @@ "files": [ |
@@ -7,6 +7,8 @@ # tsconfig | ||
```sh | ||
npm install --save-dev @sindresorhus/tsconfig | ||
``` | ||
$ npm install --save-dev @sindresorhus/tsconfig | ||
``` | ||
*This config requires TypeScript 4.7 or later.* | ||
## Usage | ||
@@ -18,3 +20,3 @@ | ||
{ | ||
"extends": "@sindresorhus/tsconfig/tsconfig.json", | ||
"extends": "@sindresorhus/tsconfig", | ||
"compilerOptions": { | ||
@@ -30,3 +32,3 @@ "outDir": "dist" | ||
{ | ||
"extends": "@sindresorhus/tsconfig/tsconfig.json", | ||
"extends": "@sindresorhus/tsconfig", | ||
"compilerOptions": { | ||
@@ -33,0 +35,0 @@ "outDir": "dist", |
@@ -6,11 +6,10 @@ { | ||
"module": "ES2020", | ||
"target": "ES2019", // Node.js 12 | ||
"module": "node16", | ||
"moduleDetection": "force", | ||
"target": "ES2020", // Node.js 14 | ||
"lib": [ | ||
"ES2019", | ||
"ES2020.String", | ||
"DOM", | ||
"DOM.Iterable" | ||
"DOM.Iterable", | ||
"ES2020" | ||
], | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, // To provide backwards compatibility, Node.js allows you to import most CommonJS packages with a default import. This flag tells TypeScript that it's okay to use import on CommonJS modules. | ||
@@ -17,0 +16,0 @@ "resolveJsonModule": false, // ESM doesn't yet support JSON modules. |
3257
37
33