diff --git a/packages/mui-codemod/package.json b/packages/mui-codemod/package.json index 97ca398f8a22a0..c6272baa815103 100644 --- a/packages/mui-codemod/package.json +++ b/packages/mui-codemod/package.json @@ -14,7 +14,7 @@ ], "scripts": { "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-codemod/**/*.test.?(c|m)[jt]s?(x)'", - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "node ../../scripts/build.mjs node --out-dir ./build && cpy README.md build && cpy package.json build && cpy codemod.js build", "release": "pnpm build && pnpm publish" }, diff --git a/packages/mui-core-downloads-tracker/package.json b/packages/mui-core-downloads-tracker/package.json index a6ea0a1db62e89..46b3a299cd72f2 100644 --- a/packages/mui-core-downloads-tracker/package.json +++ b/packages/mui-core-downloads-tracker/package.json @@ -20,7 +20,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "mkdir build && pnpm build:copy-files", "build:copy-files": "node ../../scripts/copyFiles.mjs", "release": "pnpm build && pnpm publish" diff --git a/packages/mui-docs/package.json b/packages/mui-docs/package.json index e3fe9f45974af0..62f094174ef81a 100644 --- a/packages/mui-docs/package.json +++ b/packages/mui-docs/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs", "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", "build:modern": "echo 'Skip modern build'", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index 3ec70555ce4363..4585b4a4db3b2d 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -28,7 +28,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "shx cp -r lib/ build/ && pnpm build:typings && pnpm build:copy-files", "build:lib": "pnpm build:node && pnpm build:stable", "build:lib:clean": "rimraf lib/ && pnpm build:lib", diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index de45395be72f8c..41f1a9c749bda1 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -28,7 +28,7 @@ }, "scripts": { "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", - "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types", + "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", "build:stable": "node ../../scripts/build.mjs stable", diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index 9627eb73f2c640..aec3047f0550c6 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-styled-engine-sc/package.json b/packages/mui-styled-engine-sc/package.json index ab60f2c6cddce0..2148b00225dd33 100644 --- a/packages/mui-styled-engine-sc/package.json +++ b/packages/mui-styled-engine-sc/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-styled-engine/package.json b/packages/mui-styled-engine/package.json index c6147d62e2be35..245239a35e5267 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-styles/package.json b/packages/mui-styles/package.json index 41f8928f30a4af..a5354783fdbe50 100644 --- a/packages/mui-styles/package.json +++ b/packages/mui-styles/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui-org" }, "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-types/package.json b/packages/mui-types/package.json index 0414b7c0cb4ffd..2978d3b7b6b2c7 100644 --- a/packages/mui-types/package.json +++ b/packages/mui-types/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-types", "scripts": { - "prebuild": "rimraf build", + "prebuild": "rimraf --glob build \"*.tsbuildinfo\"", "build": "mkdir build && cpy index.d.ts build/ && cpy OverridableComponentAugmentation.ts build/ && pnpm build:copy-files", "build:copy-files": "node ../../scripts/copyFiles.mjs", "release": "pnpm build && pnpm publish",