Skip to content

Commit 4ee9f15

Browse files
committed
install deps before deploying
1 parent cd5de1a commit 4ee9f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
"bundle:alone": "rsbuild build",
6262
"clean": "lerna run clean:alone --scope=@dzcode.io/web --include-dependencies --stream",
6363
"clean:alone": "rimraf dist coverage bundle node_modules/.cache && rimraf ./cloudflare/public",
64-
"deploy": "npm run generate:htmls && npm run generate:sitemap && rimraf ./cloudflare/public && cpy \"./bundle/**/*\" ./cloudflare/public && cd ./cloudflare && npm run deploy:prd ",
65-
"deploy:stg": "npm run generate:htmls && npm run generate:sitemap && rimraf ./cloudflare/public && cpy \"./bundle/**/*\" ./cloudflare/public && cd ./cloudflare && npm run deploy:stg",
64+
"deploy": "npm run generate:htmls && npm run generate:sitemap && rimraf ./cloudflare/public && cpy \"./bundle/**/*\" ./cloudflare/public && cd ./cloudflare && npm install && npm run deploy:prd ",
65+
"deploy:stg": "npm run generate:htmls && npm run generate:sitemap && rimraf ./cloudflare/public && cpy \"./bundle/**/*\" ./cloudflare/public && cd ./cloudflare && npm install && npm run deploy:stg",
6666
"e2e:dev": "npx wait-on http://localhost:8080/ && npx cypress open",
6767
"generate:bundle-info": "ts-node ../packages/tooling/bundle-info.ts",
6868
"generate:htmls": "cross-env TS_NODE_SKIP_PROJECT=true ts-node --compilerOptions \"{\\\"baseUrl\\\": \\\".\\\"}\" src/_build/gen-multiple-htmls.ts",

0 commit comments

Comments
 (0)