From 79477702d245b66ce1451ec99227d16e2f729e46 Mon Sep 17 00:00:00 2001 From: Libin YANG Date: Mon, 9 Dec 2024 15:40:33 +0800 Subject: [PATCH] fix: build cli (#462) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 47a93d4..7e56435 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:only": "vite build", "build:h5-netlify": "run-p type-check \"build:h5-netlify:only {@}\" --", "build:h5-netlify:only": "cross-env SERVER_ENV=NETLIFY vite build", - "build:cli": "npm run build && npm run shx rm -rf md-cli/dist && npm run shx rm -rf dist/**/*.map && npm run shx cp -r dist md-cli/ && cd md-cli && npm run pack", + "build:cli": "npm run build && npx shx rm -rf md-cli/dist && npx shx rm -rf dist/**/*.map && npx shx cp -r dist md-cli/ && cd md-cli && npm pack", "build:analyze": "cross-env ANALYZE=true vite build", "preview": "npm run build && vite preview", "release:cli": "node ./bin/release.js",