From c51c7a3ba8d5de8d20cc7d364dd9497885a43ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Tue, 5 Sep 2023 11:43:42 +0200 Subject: [PATCH] Use the script during build --- packages/mui-base/package.json | 2 +- packages/mui-docs/package.json | 2 +- packages/mui-icons-material/package.json | 2 +- packages/mui-joy/package.json | 2 +- packages/mui-lab/package.json | 2 +- packages/mui-material-next/package.json | 2 +- packages/mui-material/package.json | 2 +- packages/mui-private-theming/package.json | 2 +- packages/mui-styled-engine-sc/package.json | 2 +- packages/mui-styled-engine/package.json | 2 +- packages/mui-styles/package.json | 2 +- packages/mui-system/package.json | 2 +- packages/mui-utils/package.json | 2 +- packages/zero-runtime/package.json | 2 +- packages/zero-tag-processor/package.json | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/mui-base/package.json b/packages/mui-base/package.json index 4d1ec163e57fb8..34b47a97ed01b4 100644 --- a/packages/mui-base/package.json +++ b/packages/mui-base/package.json @@ -27,7 +27,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-docs/package.json b/packages/mui-docs/package.json index 1853921a52cbe4..0e459ebcbe34fd 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": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "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 d27a4a400c34b0..9662e82628009e 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -28,7 +28,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "shx cp -r lib/ build/ && pnpm build:typings && pnpm build:copy-files", + "build": "shx cp -r lib/ build/ && pnpm build:typings && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:lib": "pnpm build:node && pnpm build:stable", "build:lib:clean": "rimraf lib/ && pnpm build:lib", "build:legacy": "echo 'Skip legacy build'", diff --git a/packages/mui-joy/package.json b/packages/mui-joy/package.json index acb71e440e2d24..070b635eb06161 100644 --- a/packages/mui-joy/package.json +++ b/packages/mui-joy/package.json @@ -25,7 +25,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "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-lab/package.json b/packages/mui-lab/package.json index 5662b84b0ed009..88d462721ff77c 100644 --- a/packages/mui-lab/package.json +++ b/packages/mui-lab/package.json @@ -28,7 +28,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files ", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-material-next/package.json b/packages/mui-material-next/package.json index 745d24a71a90ee..1c0c82ecfa3b7f 100644 --- a/packages/mui-material-next/package.json +++ b/packages/mui-material-next/package.json @@ -27,7 +27,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "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-material/package.json b/packages/mui-material/package.json index 72639f85f8c227..8debe89c3158cc 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -27,7 +27,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:umd && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:umd && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index 01eed8f262af9f..8619bd48e0fdcf 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "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 08c3b052b9f568..ac377d32619514 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" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "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 20971719cda701..50656eb66304ca 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "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 76c01b239248c7..b110f034920841 100644 --- a/packages/mui-styles/package.json +++ b/packages/mui-styles/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-system/package.json b/packages/mui-system/package.json index e7a86ab9b704ac..5d828bc638d284 100644 --- a/packages/mui-system/package.json +++ b/packages/mui-system/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index 3c76667a1ada24..ca44800a606317 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -26,7 +26,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/zero-runtime/package.json b/packages/zero-runtime/package.json index a64c71bfe02a6b..6a4fb42112f5a6 100644 --- a/packages/zero-runtime/package.json +++ b/packages/zero-runtime/package.json @@ -25,7 +25,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node", diff --git a/packages/zero-tag-processor/package.json b/packages/zero-tag-processor/package.json index caad52d51943e0..eccf9ad7186b43 100644 --- a/packages/zero-tag-processor/package.json +++ b/packages/zero-tag-processor/package.json @@ -25,7 +25,7 @@ "url": "https://opencollective.com/mui" }, "scripts": { - "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", + "build": "pnpm build:legacy && pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files && node ../../scripts/updateWorkspaceProject.mjs ./build/package.json", "build:legacy": "node ../../scripts/build.mjs legacy", "build:modern": "node ../../scripts/build.mjs modern", "build:node": "node ../../scripts/build.mjs node",