Add the package to your "devDependencies":
npm install --save-dev @tsconfig/node20
yarn add --dev @tsconfig/node20Add to your tsconfig.json:
"extends": "@tsconfig/node20/tsconfig.json"The tsconfig.json:
You can find the code here.
Add the package to your "devDependencies":
npm install --save-dev @tsconfig/node20
yarn add --dev @tsconfig/node20Add to your tsconfig.json:
"extends": "@tsconfig/node20/tsconfig.json"The tsconfig.json:
You can find the code here.
{ "$schema": "https://www.schemastore.org/tsconfig", "_version": "20.1.0", "compilerOptions": { "lib": ["es2023"], "module": "nodenext", "target": "es2022", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "moduleResolution": "node16" } }