Skip to content

Commit

Permalink
Use more modern tsup/tsc settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Dec 27, 2023
1 parent c322ca2 commit e949d9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 31 deletions.
35 changes: 8 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"ts-jest": "^29.1.1",
"tsd": "^0.30.0",
"tsup": "^8.0.1",
"typescript": "^4.1.6"
"typescript": "^5.3.3"
},
"githubUrl": "https://github.com/nvie/decoders",
"sideEffects": false
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"strict": true,
"target": "es2020",
"module": "es2020",
"moduleResolution": "node16",
"moduleResolution": "bundler",
"esModuleInterop": true,
"stripInternal": true,
"forceConsistentCasingInFileNames": true,
"allowUnreachableCode": false, // False makes this stricter: errors instead of warns
"allowUnusedLabels": false, // False makes this stricter: errors instead of warns
"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
"isolatedModules": true,
"noImplicitReturns": true,
// "noUncheckedIndexedAccess": true,
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
dts: true,
splitting: true,
clean: true,
target: 'es2020',
// target: /* what tsconfig specifies */,
format: ['esm', 'cjs'],
sourcemap: true,
});

0 comments on commit e949d9d

Please sign in to comment.