Skip to content

Commit 0e15118

Browse files
fix: Updated bump-all-packages to remove the lerna stream (rjsf-team#3773)
With the advent of npm workspaces, the bumping of packages in the `package.json` files of each workspace element happens automatically rather than needing to use `lerna --stream` - Updated the root `package.json` to remove the `lerna --stream` of each sub-package `package.json` and folded in the main `bump-packages` command directly into the `bump-all-packages` script - Removed the `bump-packages` script from each of the sub-package `package.json` files - Updated the `CHANGELOG.md` file accordingly
1 parent 4ea75d8 commit 0e15118

File tree

15 files changed

+19
-28
lines changed

15 files changed

+19
-28
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ should change the heading of the (upcoming) version to include a major version b
2828
- Updated `getDefaultFormState()` to use `mergeSchema()` for merging in the remaining schema for `anyOf`/`oneOf`
2929
- Updated `retrieveSchema()` to use `mergeSchema()` for merging in the remaining schema for `anyOf`/`oneOf`
3030

31+
## Dev / docs / playground
32+
33+
- Switched to using npm workspaces for the sub-package hierarchy
34+
- NOTE: Developers may need to run the `npm run refresh-node-modules` script first to get the build and tests to work correctly
35+
3136
# 5.10.0
3237

3338
## @rjsf/core

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"prepare": "husky install",
2121
"format": "prettier --write .",
2222
"format-check": "prettier --check .",
23-
"bump-all-packages": "echo 'NOTE: Make sure to sanity check the playground locally before commiting changes' && npm run bump-packages && lerna run --concurrency 1 --stream bump-packages && npm install && npm run build && npm run test",
24-
"bump-packages": "npm update --save --lockfile-version 2",
23+
"bump-all-packages": "echo 'NOTE: Make sure to sanity check the playground locally before commiting changes' && npm update --save --lockfile-version 2 && npm install && npm run build && npm run test",
2524
"bump-peer-deps": "node scripts/bump-peer-deps.js",
2625
"refresh-node-modules": "rimraf packages/*/node_modules && rimraf node_modules && npm install",
2726
"commit-package-changes": "git add package-lock.json packages/*/package*.json && cross-env CI=skipPrecommit git commit -m 'updated package*.json after versioning' && git push",

packages/antd/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"lint": "eslint src test",
1313
"precommit": "lint-staged",
1414
"test": "dts test",
15-
"test:update": "dts test --u",
16-
"bump-packages": "npm update --save --lockfile-version 2"
15+
"test:update": "dts test --u"
1716
},
1817
"lint-staged": {
1918
"{src,test}/**/*.ts?(x)": [

packages/bootstrap-4/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"lint": "eslint src test",
2020
"precommit": "lint-staged",
2121
"test": "dts test",
22-
"test:update": "dts test --u",
23-
"bump-packages": "npm update --save --lockfile-version 2"
22+
"test:update": "dts test --u"
2423
},
2524
"lint-staged": {
2625
"{src,test}/**/*.ts?(x)": [

packages/chakra-ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"precommit": "lint-staged",
1717
"test": "dts test",
1818
"test:update": "dts test --u",
19-
"test:watch": "dts test --watch",
20-
"bump-packages": "npm update --save --lockfile-version 2"
19+
"test:watch": "dts test --watch"
2120
},
2221
"lint-staged": {
2322
"{src,test}/**/*.ts?(x)": [

packages/core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"test:debug": "node --inspect-brk node_modules/.bin/dts test",
1414
"test:update": "dts test --u",
1515
"test:watch": "dts test --watch",
16-
"test-coverage": "dts test --coverage",
17-
"bump-packages": "npm update --save --lockfile-version 2"
16+
"test-coverage": "dts test --coverage"
1817
},
1918
"lint-staged": {
2019
"{src,test,testSnap}/**/*.[jt]s?(x)": [

packages/docs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"typecheck": "tsc",
1616
"precommit": "lint-staged",
1717
"cs-check": "prettier -l \"{src, docs}/**/*.(ts?(x)|md|css)\"",
18-
"cs-format": "prettier \"{src, docs}/**/*.(ts?(x)|md|css)\" --write",
19-
"bump-packages": "npm update --save --lockfile-version 2"
18+
"cs-format": "prettier \"{src, docs}/**/*.(ts?(x)|md|css)\" --write"
2019
},
2120
"lint-staged": {
2221
"src/**/*.(ts?(x)|css)": [

packages/fluent-ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"lint": "eslint src test",
1616
"precommit": "lint-staged",
1717
"test": "dts test",
18-
"test:update": "dts test --u",
19-
"bump-packages": "npm update --save --lockfile-version 2"
18+
"test:update": "dts test --u"
2019
},
2120
"lint-staged": {
2221
"{src,test}/**/*.ts?(x)": [

packages/material-ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"lint": "eslint src test",
1616
"precommit": "lint-staged",
1717
"test": "dts test",
18-
"test:update": "dts test --u",
19-
"bump-packages": "npm update --save --lockfile-version 2"
18+
"test:update": "dts test --u"
2019
},
2120
"lint-staged": {
2221
"{src,test}/**/*.ts?(x)": [

packages/mui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"lint": "eslint src test",
1616
"precommit": "lint-staged",
1717
"test": "dts test",
18-
"test:update": "dts test --u",
19-
"bump-packages": "npm update --save --lockfile-version 2"
18+
"test:update": "dts test --u"
2019
},
2120
"lint-staged": {
2221
"{src,test}/**/*.ts?(x)": [

0 commit comments

Comments
 (0)