Add prepack lifecycle script to TypeScript guest aswell to ease publishing.

This commit is contained in:
Sebastian Jeltsch
2025-09-15 12:10:34 +02:00
parent 96eb206f92
commit 4fbbb8e451
2 changed files with 5 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
dist/
node_modules/
# pnpm pack
*.tgz

View File

@@ -71,10 +71,11 @@
"directory": "guests/typescript"
},
"scripts": {
"generate:types": "jco types wit/ -o generated/types",
"build": "vite build",
"check": "tsc --noEmit --skipLibCheck && vite build && eslint",
"format": "prettier -w src tests",
"generate:types": "jco types wit/ -o generated/types",
"prepack": "rm -rf ./dist && pnpm build && test -e ./dist/index.js",
"test": "vitest run"
},
"devDependencies": {