diff --git a/package.json b/package.json index 9430ed5526a..8c1f7b158d9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "dist:mac": "electron-builder --mac", "dist:linux": "electron-builder --linux --x64 --publish onTag", "pack": "yarn && yarn build && yarn clean:dist && yarn dist", - "pack:win": "cmd /c yarn && yarn install:electron:dependencies && yarn clean:build:windows && yarn copy:files && yarn build:prod && yarn build:electron && yarn clean:dist:win && yarn dist:win", + "pack:win": "cmd /c yarn && yarn install:electron:dependencies && yarn clean:build:win && yarn copy:files && yarn build:prod && yarn build:electron && yarn clean:dist:win && yarn dist:win", "test": "jest --config ./setup/jest.config.js", "test:live": "yarn test -- --watch", "cypress:open": "cypress open --project tests/cypress", @@ -42,11 +42,11 @@ "analyze:bundles": "webpack --config ./setup/config/webpack.config.analyze", "copy:files": "cpx \"./setup/react/{index.html,assets/**/*}\" \"./app/build/\"", "clean:build": "rm -rf app/build", - "clean:build:windows": "Remove-Item -Path .\"app\"build -Recurse -Force", + "clean:build:win": "rmdir /s /q \"app\build\"", "copy:files:e2e": "cpx \"./setup/react/{index.html,assets/**/*}\" \"./app/${BUILD_NAME}/\"", "clean:build:e2e": "rm -rf app/${BUILD_NAME}", "clean:dist": "rm -rf dist", - "clean:dist:win": "Remove-Item -Path dist -Recurse -Force", + "clean:dist:win": "rmdir /s /q dist", "postinstall": "patch-package && electron-builder install-app-deps", "cucumber:playwright:open": "cucumber-js test -c cucumber.js" },