Skip to content

refactor(scripts): use forEachPackage instead of yarn workspaces info - #35633

Closed
hoxyq wants to merge 2 commits into
react:mainfrom
hoxyq:export-D41996732
Closed

refactor(scripts): use forEachPackage instead of yarn workspaces info#35633
hoxyq wants to merge 2 commits into
react:mainfrom
hoxyq:export-D41996732

Conversation

@hoxyq

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

These changes add usage of forEachPackage as a replacement for yarn --json workspaces info.

This is because at some point in release cycle there is a script which removed workspaces block from react-native's package.json, so yarn --info workspaces info produces an error

Reviewed By: cortinico

Differential Revision: D41996732

Ruslan Lesiutinand others added 2 commits December 13, 2022 14:04
…rcleci
Summary:
Changelog: [Internal]
1. Added `for-each-package.js` script. This can be used to iterate through all of the packages inside `/packages` with the access to package manifest. This soon can be used as a replacement for `yarn workspaces --info`
2. Added `find-and-publish-all-bumped-packages.js` script. This script iterates through all the packages and detects if the version was changed via `git log -p` (same as `git diff`). If so, it tries to publish it to npm.
3. Added corresponding job and workflow to CircleCI config, which will use this script
Differential Revision: D41972733
fbshipit-source-id: 6a8b8c2995943d6c8421cbe19cd291069655183b
Summary:
Changelog: [Internal]
These changes add usage of `forEachPackage` as a replacement for `yarn --json workspaces info`.
This is because at some point in release cycle there is a script which removed `workspaces` block from react-native's `package.json`, so `yarn --info workspaces info` produces an error
Reviewed By: cortinico
Differential Revision: D41996732
fbshipit-source-id: f1f89c6766aed213df6f1fb18305925ff2e4928c
@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Dec 13, 2022
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D41996732

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,777,821+0
androidhermesarmeabi-v7a7,097,486+0
androidhermesx868,252,262+0
androidhermesx86_648,110,357+0
androidjscarm64-v8a8,970,479+0
androidjscarmeabi-v7a7,703,402+0
androidjscx869,034,226+0
androidjscx86_649,511,764+0

Base commit: 455ca8c
Branch: main

@pull-bot

Copy link
Copy Markdown

PR build artifact for 6ed631f is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 455ca8c
Branch: main

@pull-bot

Copy link
Copy Markdown

PR build artifact for 6ed631f is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 7f29357.

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Dec 14, 2022
kelset pushed a commit that referenced this pull request Dec 19, 2022
…o` (#35633)
Summary:
Pull Request resolved: #35633
Changelog: [Internal]
These changes add usage of `forEachPackage` as a replacement for `yarn --json workspaces info`.
This is because at some point in release cycle there is a script which removed `workspaces` block from react-native's `package.json`, so `yarn --info workspaces info` produces an error
Reviewed By: cortinico
Differential Revision: D41996732
fbshipit-source-id: 2c62c1a5eb41d711c563f9f7b0de3d67fc11823d
# Conflicts:
#	.circleci/config.yml
kelset added a commit that referenced this pull request Dec 19, 2022
kelset pushed a commit that referenced this pull request Dec 19, 2022
…o` (#35633)
Summary:
Pull Request resolved: #35633
Changelog: [Internal]
These changes add usage of `forEachPackage` as a replacement for `yarn --json workspaces info`.
This is because at some point in release cycle there is a script which removed `workspaces` block from react-native's `package.json`, so `yarn --info workspaces info` produces an error
Reviewed By: cortinico
Differential Revision: D41996732
fbshipit-source-id: 2c62c1a5eb41d711c563f9f7b0de3d67fc11823d
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@hoxyq@facebook-github-bot@analysis-bot@pull-bot