From d38277393b372b52dd7ec4d86755eeda9c27135d Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 10 Aug 2024 17:19:42 +0800 Subject: [PATCH 1/2] chore: update --- packages/happy-dom/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/happy-dom/package.json b/packages/happy-dom/package.json index 66dd82d3c..fb5920632 100644 --- a/packages/happy-dom/package.json +++ b/packages/happy-dom/package.json @@ -67,7 +67,7 @@ "scripts": { "compile": "npm run compile:esm && npm run compile:cjs npm run build-version-file", "compile:esm": "tsc", - "compile:cjs": "rm -rf ./cjs && tsc --moduleResolution Node --module CommonJS --outDir cjs && npm run compile:change-cjs-file-extension", + "compile:cjs": "node -e \"fs.rmSync('./cjs', { recursive: true, force: true })\" && tsc --moduleResolution Node --module CommonJS --outDir cjs && npm run compile:change-cjs-file-extension", "compile:change-cjs-file-extension": "node ./bin/change-file-extension.cjs --dir=./cjs --fromExt=.js --toExt=.cjs", "build-version-file": "node ./bin/build-version-file.cjs", "watch": "tsc -w --preserveWatchOutput", From 535cd319957d6dbf7d9db9d7d2194b9e4b3ea8d4 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 10 Aug 2024 17:25:23 +0800 Subject: [PATCH 2/2] chore: update --- packages/global-registrator/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/global-registrator/package.json b/packages/global-registrator/package.json index 5b4cbe48c..75594d920 100644 --- a/packages/global-registrator/package.json +++ b/packages/global-registrator/package.json @@ -67,12 +67,12 @@ "scripts": { "compile": "npm run compile:esm && npm run compile:cjs", "compile:esm": "tsc", - "compile:cjs": "rm -rf cjs && tsc --moduleResolution Node --module CommonJS --outDir cjs && npm run compile:change-cjs-file-extension", + "compile:cjs": "node -e \"fs.rmSync('./cjs', { recursive: true, force: true })\" && tsc --moduleResolution Node --module CommonJS --outDir cjs && npm run compile:change-cjs-file-extension", "compile:change-cjs-file-extension": "node ../happy-dom/bin/change-file-extension.cjs --dir=./cjs --fromExt=.js --toExt=.cjs", "watch": "npm run compile && tsc -w --preserveWatchOutput", "test": "npm run test:react && npm run test:bun", "test:debug": "tsc --project ./test/react && node ../happy-dom/bin/change-file-extension.cjs --dir=./tmp --fromExt=.js --toExt=.cjs && node --inspect-brk ./tmp/react/React.test.cjs", - "test:react": "rm -rf tmp && tsc --project ./test/react && node ../happy-dom/bin/change-file-extension.cjs --dir=./tmp --fromExt=.js --toExt=.cjs && node ./tmp/react/React.test.cjs", + "test:react": "node -e \"fs.rmSync('./tmp', { recursive: true, force: true })\" && tsc --project ./test/react && node ../happy-dom/bin/change-file-extension.cjs --dir=./tmp --fromExt=.js --toExt=.cjs && node ./tmp/react/React.test.cjs", "test:bun": "bun test ./test/bun/Bun.test.js" }, "dependencies": {