Skip to content

Commit c2fa720

Browse files
committed
chore: add postinstall script
1 parent 45c64f5 commit c2fa720

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
"generate:docs": "pnpm --filter docs generate",
99
"dev:viteplay": "pnpm --filter viteplay dev",
1010
"build:viteplay": "pnpm --filter viteplay build",
11+
"prepare:vfm": "pnpm --filter vue-final-modal prepare",
1112
"dev:vfm": "pnpm --filter vue-final-modal dev",
1213
"build:vfm": "pnpm --filter vue-final-modal build",
1314
"test:vfm": "pnpm --filter vue-final-modal test",
1415
"coverage:vfm": "pnpm --filter vue-final-modal coverage",
1516
"release:vfm": "pnpm --filter vue-final-modal release",
1617
"lint": "eslint . --ext=.ts,.vue --fix",
17-
"typecheck": "pnpm --parallel typecheck"
18+
"typecheck": "pnpm --parallel typecheck",
19+
"postinstall": "pnpm prepare:vfm"
1820
},
1921
"dependencies": {
2022
"vue": "^3.2.41"

packages/vue-final-modal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dist"
2222
],
2323
"scripts": {
24+
"prepare": "vue-tsc --noEmit && vite build",
2425
"dev": "vue-tsc --noEmit && vite build -w",
2526
"build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.build-dts.json --declaration --emitDeclarationOnly",
2627
"test": "vitest run",

0 commit comments

Comments
 (0)