Ver código fonte

Fix unable to run the clear cache command normally #3086 (#3088)

* Create node.js.yml

* Fix unable to run the clear cache command normally #3086

This command will clear the pnpm cache and recompile through vite

* Maintain NPM packaging command
James Zow 1 ano atrás
pai
commit
b5bdb53555
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -20,7 +20,7 @@
     "build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build",
     "build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode analyze",
     "build:docker": "vite build --mode docker",
-    "build:no-cache": "pnpm clean:cache && npm run build",
+    "build:no-cache": "pnpm store prune && npm run build",
     "build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode test",
     "commit": "czg",
     "dev": "pnpm vite",