From bf725d6bf36b9092c43f843db98a2259559cef0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Tue, 20 Feb 2024 21:43:52 +0100 Subject: [PATCH] [code-infra] Build internal packages before publishing --- package.json | 2 +- packages-internal/scripts/package.json | 4 ++-- packages/docs-utils/CHANGELOG.md | 4 ++++ packages/docs-utils/package.json | 6 +++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d3a6d227332943..ae0561ab2201ea 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "clean:zero": "pnpm --filter \"@mui/zero-*\" clean", "build:codesandbox": "NODE_OPTIONS=\"--max_old_space_size=4096\" lerna run --concurrency 8 --scope \"@mui/*\" --scope \"@mui-internal/*\" --no-private build", "release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private --force-publish=@mui/core-downloads-tracker", - "release:build": "lerna run --concurrency 8 --scope \"@mui/*\" build --skip-nx-cache", + "release:build": "lerna run --concurrency 8 --no-private build --skip-nx-cache", "release:changelog": "node scripts/releaseChangelog.mjs", "release:publish": "pnpm publish --recursive --tag latest", "release:publish:dry-run": "pnpm publish --recursive --tag latest --registry=\"http://localhost:4873/\"", diff --git a/packages-internal/scripts/package.json b/packages-internal/scripts/package.json index caf6ef585608a3..1182ad834c9913 100644 --- a/packages-internal/scripts/package.json +++ b/packages-internal/scripts/package.json @@ -19,8 +19,8 @@ "scripts": { "prebuild": "rimraf ./build", "build": "tsc --build tsconfig.json", - "release:publish": "pnpm publish --tag latest", - "release:publish:dry-run": "pnpm publish --tag latest --registry=\"http://localhost:4873/\"", + "release:publish": "pnpm build && pnpm publish --tag latest", + "release:publish:dry-run": "pnpm build && pnpm publish --tag latest --registry=\"http://localhost:4873/\"", "test": "cd ../../ && cross-env NODE_ENV=test mocha --config packages-internal/scripts/typescript-to-proptypes/test/.mocharc.js 'packages-internal/scripts/typescript-to-proptypes/**/*.test.ts'", "typescript": "tsc --build tsconfig.typecheck.json" }, diff --git a/packages/docs-utils/CHANGELOG.md b/packages/docs-utils/CHANGELOG.md index a6c93f9bf457a6..3255c1a72040cf 100644 --- a/packages/docs-utils/CHANGELOG.md +++ b/packages/docs-utils/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.2 + +Fixed incorrectly released package. + ## 1.0.0 Initial release as an npm package. diff --git a/packages/docs-utils/package.json b/packages/docs-utils/package.json index 2875cdea0f9636..a199a615938c69 100644 --- a/packages/docs-utils/package.json +++ b/packages/docs-utils/package.json @@ -1,6 +1,6 @@ { "name": "@mui-internal/docs-utils", - "version": "1.0.1", + "version": "1.0.2", "author": "MUI Team", "description": "Utilities for MUI docs. This is an internal package not meant for general use.", "main": "./build/index.js", @@ -17,8 +17,8 @@ "prebuild": "rimraf ./build", "build": "tsc -b tsconfig.build.json", "typescript": "tsc -b tsconfig.json", - "release:publish": "pnpm publish --tag latest", - "release:publish:dry-run": "pnpm publish --tag latest --registry=\"http://localhost:4873/\"" + "release:publish": "pnpm build && pnpm publish --tag latest", + "release:publish:dry-run": "pnpm build && pnpm publish --tag latest --registry=\"http://localhost:4873/\"" }, "dependencies": { "rimraf": "^5.0.5",