Skip to content

Commit 18b8af5

Browse files
committed
prebuild and postbuild script to copy and remove index.html
Signed-off-by: Sree Narayanan <[email protected]>
1 parent 51a4944 commit 18b8af5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

workbench/fastify/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"scripts": {
99
"generate:workflows": "node ../scripts/generate-workflows-registry.js",
1010
"predev": "pnpm generate:workflows",
11-
"prebuild": "pnpm generate:workflows",
11+
"copy:index": "mkdir -p public && cp index.html public/index.html",
12+
"prebuild": "pnpm generate:workflows && pnpm copy:index",
13+
"postbuild": "rm -f public/index.html",
1214
"build": "nitro build",
1315
"dev": "nitro dev",
1416
"start": "node .output/server/index.mjs"

0 commit comments

Comments
 (0)