Skip to content

Commit

Permalink
fix: Updated bump-all-packages to remove the lerna stream (rjsf-team#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
heath-freenome committed Jul 15, 2023
1 parent 4ea75d8 commit 0e15118
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -28,6 +28,11 @@ should change the heading of the (upcoming) version to include a major version b
- Updated `getDefaultFormState()` to use `mergeSchema()` for merging in the remaining schema for `anyOf`/`oneOf`
- Updated `retrieveSchema()` to use `mergeSchema()` for merging in the remaining schema for `anyOf`/`oneOf`

## Dev / docs / playground

- Switched to using npm workspaces for the sub-package hierarchy
- NOTE: Developers may need to run the `npm run refresh-node-modules` script first to get the build and tests to work correctly

# 5.10.0

## @rjsf/core
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -20,8 +20,7 @@
"prepare": "husky install",
"format": "prettier --write .",
"format-check": "prettier --check .",
"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",
"bump-packages": "npm update --save --lockfile-version 2",
"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",
"bump-peer-deps": "node scripts/bump-peer-deps.js",
"refresh-node-modules": "rimraf packages/*/node_modules && rimraf node_modules && npm install",
"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",
Expand Down
3 changes: 1 addition & 2 deletions packages/antd/package.json
Expand Up @@ -12,8 +12,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/bootstrap-4/package.json
Expand Up @@ -19,8 +19,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/chakra-ui/package.json
Expand Up @@ -16,8 +16,7 @@
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"test:watch": "dts test --watch",
"bump-packages": "npm update --save --lockfile-version 2"
"test:watch": "dts test --watch"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/core/package.json
Expand Up @@ -13,8 +13,7 @@
"test:debug": "node --inspect-brk node_modules/.bin/dts test",
"test:update": "dts test --u",
"test:watch": "dts test --watch",
"test-coverage": "dts test --coverage",
"bump-packages": "npm update --save --lockfile-version 2"
"test-coverage": "dts test --coverage"
},
"lint-staged": {
"{src,test,testSnap}/**/*.[jt]s?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/package.json
Expand Up @@ -15,8 +15,7 @@
"typecheck": "tsc",
"precommit": "lint-staged",
"cs-check": "prettier -l \"{src, docs}/**/*.(ts?(x)|md|css)\"",
"cs-format": "prettier \"{src, docs}/**/*.(ts?(x)|md|css)\" --write",
"bump-packages": "npm update --save --lockfile-version 2"
"cs-format": "prettier \"{src, docs}/**/*.(ts?(x)|md|css)\" --write"
},
"lint-staged": {
"src/**/*.(ts?(x)|css)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/fluent-ui/package.json
Expand Up @@ -15,8 +15,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/material-ui/package.json
Expand Up @@ -15,8 +15,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/mui/package.json
Expand Up @@ -15,8 +15,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/playground/package.json
Expand Up @@ -16,8 +16,7 @@
"publish-to-gh-pages": "npm run build && gh-pages --dist build/",
"publish-to-npm": "npm run build && npm publish",
"start": "vite --force",
"preview": "vite preview",
"bump-packages": "npm update --save --lockfile-version 2"
"preview": "vite preview"
},
"lint-staged": {
"src/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/semantic-ui/package.json
Expand Up @@ -19,8 +19,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:update": "dts test --u",
"bump-packages": "npm update --save --lockfile-version 2"
"test:update": "dts test --u"
},
"lint-staged": {
"{src,test}/**/*.ts(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/utils/package.json
Expand Up @@ -19,8 +19,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"test:debug": "node --inspect-brk node_modules/.bin/dts test",
"bump-packages": "npm update --save --lockfile-version 2"
"test:debug": "node --inspect-brk node_modules/.bin/dts test"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/validator-ajv6/package.json
Expand Up @@ -18,8 +18,7 @@
"cs-format": "prettier \"{src,test}/**/*.ts?(x)\" --write",
"lint": "eslint src test",
"precommit": "lint-staged",
"test": "dts test",
"bump-packages": "npm update --save --lockfile-version 2"
"test": "dts test"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down
3 changes: 1 addition & 2 deletions packages/validator-ajv8/package.json
Expand Up @@ -20,8 +20,7 @@
"lint": "eslint src test",
"precommit": "lint-staged",
"compileSchemas": "node test/harness/compileTestSchema.js",
"test": "npm run compileSchemas && dts test",
"bump-packages": "npm update --save --lockfile-version 2"
"test": "npm run compileSchemas && dts test"
},
"lint-staged": {
"{src,test}/**/*.ts?(x)": [
Expand Down

0 comments on commit 0e15118

Please sign in to comment.