Skip to content

Commit

Permalink
refactor!: drop node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 2, 2023
1 parent c44dc88 commit 59cb431
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@
"fast-glob": "^3.3.1",
"prettier": "^3.0.0",
"rollup": "^3.27.0",
"tsup": "^7.1.0",
"tsup": "^7.2.0",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vitest": "^0.33.0",
"webpack": "^5.88.2"
},
"engines": {
"node": ">=14.19.0"
"node": ">=16.14.0"
},
"prettier": "@sxzz/prettier-config"
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "es2021",
"target": "es2022",
"module": "esnext",
"lib": ["es2019"],
"lib": ["es2022"],
"strict": true,
"esModuleInterop": true,
"moduleResolution": "bundler",
Expand All @@ -11,6 +11,6 @@
"resolveJsonModule": true,
"types": ["node"]
},
"include": ["src", "tests", "scripts"],
"include": ["src", "tests"],
"exclude": ["tests/fixtures"]
}
4 changes: 2 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['./src'],
entry: ['./src/*.ts', '!./src/types.ts'],
format: ['cjs', 'esm'],
target: 'node14',
target: 'node16.14',
splitting: true,
clean: true,
dts: true,
Expand Down

0 comments on commit 59cb431

Please sign in to comment.