Sfoglia il codice sorgente

📦 build(scripts): update build script to include api build step

- modify build script to run build:api after build:server
- ensure complete build process includes client, server and api components
yourname 7 mesi fa
parent
commit
61ee98ef86
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -5,7 +5,7 @@
   "type": "module",
   "scripts": {
     "dev": "PORT=8080 node server",
-    "build": "npm run build:client && npm run build:server",
+    "build": "npm run build:client && npm run build:server && npm run build:api",
     "build:client": "vite build --outDir dist/client --manifest",
     "build:server": "vite build --ssr src/server/index.tsx --outDir dist/server",
     "build:api": "vite build --ssr src/server/api.ts --outDir dist/api",