Skip to content

Commit

Permalink
build: fix tsc --target ES2020
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Dec 17, 2024
1 parent 04af7ea commit 51ed3ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"types": "dist/index.d.ts",
"scripts": {
"prepare": "npm run build",
"build": "vite build && tsc --declaration --emitDeclarationOnly --outDir dist/ src/index.ts",
"build": "vite build && tsc --target ES2020 --declaration --emitDeclarationOnly --outDir dist/ src/index.ts",
"build:demo": "npm run build:demo-esbuild && npm run build:demo-rollup && npm run build:demo-webpack",
"build:demo-esbuild": "cd demo-esbuild && npm install && npm run build",
"build:demo-rollup": "cd demo-rollup && npm install && npm run build",
Expand Down Expand Up @@ -89,5 +89,6 @@
},
"optionalDependencies": {
"open-location-code": "^1.0.3"
}
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

0 comments on commit 51ed3ea

Please sign in to comment.