From c2df8d3fa32707a9cf531393dc782072d364eaaa Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 29 Aug 2026 00:28:28 +0800 Subject: [PATCH] =?UTF-8?q?build(acme-client):=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E5=B9=B6=E7=BB=9F=E4=B8=80=E6=B8=85=E7=90=86=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将多个文件清理命令替换为统一的rimraf调用 - 移除before-t --- packages/core/acme-client/package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/acme-client/package.json b/packages/core/acme-client/package.json index b6a569a0d..b5482388a 100644 --- a/packages/core/acme-client/package.json +++ b/packages/core/acme-client/package.json @@ -49,16 +49,15 @@ "rimraf": "^5.0.5" }, "scripts": { - "before-build": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true});fs.rmSync('tsconfig.tsbuildinfo',{force:true});\"", + "before-build": "rimraf dist && rimraf dist-test && rimraf tsconfig.tsbuildinfo && rimraf .rollup.cache", "build": "npm run before-build && tsc -p tsconfig.build.json --skipLibCheck", "lint": "eslint --fix \"src/**/*.ts\" \"types/**/*.ts\"", "lint-types": "tsd --files \"types/index.test-d.ts\"", "prepublishOnly": "npm run build", "test": "mocha -t 60000 \"test/setup.js\" \"test/**/*.spec.js\"", - "before-test:unit": "node -e \"const fs=require('fs');fs.rmSync('dist-test',{recursive:true,force:true});fs.rmSync('tsconfig.test.tsbuildinfo',{force:true});\"", - "test:unit": "cross-env NODE_ENV=unittest npm run before-test:unit && cross-env NODE_ENV=unittest tsc -p tsconfig.test.json --skipLibCheck && cross-env NODE_ENV=unittest mocha -t 60000 \"dist-test/**/*.test.js\"", + "test:unit": "cross-env NODE_ENV=unittest tsc -p tsconfig.test.json --skipLibCheck && cross-env NODE_ENV=unittest mocha -t 60000 \"dist-test/**/*.test.js\"", "pub": "npm publish", - "compile": "rimraf dist &&tsc --skipLibCheck --watch", + "compile": "rimraf dist && tsc --skipLibCheck --watch", "format": "prettier --write src" }, "repository": {