From b5bdb53555c1585d3d2164fcb85aa7c0c48206ad Mon Sep 17 00:00:00 2001 From: James Zow Date: Thu, 28 Sep 2023 16:31:40 +0800 Subject: [PATCH] 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3fbdb5e4c..96bb68d1e 100644 --- a/package.json +++ b/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",