Skip to content

Commit c336424

Browse files
Add TypeScript build step to build script in package.json
- Updated the `build` script to include `tsc` for TypeScript compilation before running `vite build`. - Added a new `tsc` script for standalone TypeScript compilation. - Ensures proper type-checking and generation of type definitions during the build process.
1 parent 3e6a7a2 commit c336424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"module": "dist/main.esm.js",
1717
"types": "dist/index.d.ts",
1818
"scripts": {
19+
"tsc": "tsc",
1920
"bump": "node scripts/bumper.js",
20-
"build": "vite build",
21+
"build": "tsc && vite build",
2122
"test": "vitest",
2223
"preview": "vite preview",
2324
"dev:demo": "vite --config demo/vite.config.demo.ts",

0 commit comments

Comments
 (0)