Skip to content

Commit 51ed3ea

Browse files
committed
build: fix tsc --target ES2020
1 parent 04af7ea commit 51ed3ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"types": "dist/index.d.ts",
2525
"scripts": {
2626
"prepare": "npm run build",
27-
"build": "vite build && tsc --declaration --emitDeclarationOnly --outDir dist/ src/index.ts",
27+
"build": "vite build && tsc --target ES2020 --declaration --emitDeclarationOnly --outDir dist/ src/index.ts",
2828
"build:demo": "npm run build:demo-esbuild && npm run build:demo-rollup && npm run build:demo-webpack",
2929
"build:demo-esbuild": "cd demo-esbuild && npm install && npm run build",
3030
"build:demo-rollup": "cd demo-rollup && npm install && npm run build",
@@ -89,5 +89,6 @@
8989
},
9090
"optionalDependencies": {
9191
"open-location-code": "^1.0.3"
92-
}
93-
}
92+
},
93+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
94+
}

0 commit comments

Comments
 (0)