-
Notifications
You must be signed in to change notification settings - Fork 661
fix: add lerna commands to plugins package.json #2453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rachel-fenichel
merged 3 commits into
RaspberryPiFoundation:master
from
rachel-fenichel:fix-lerna-more
Sep 3, 2024
Merged
fix: add lerna commands to plugins package.json #2453
rachel-fenichel
merged 3 commits into
RaspberryPiFoundation:master
from
rachel-fenichel:fix-lerna-more
Sep 3, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 task
cpcallen
approved these changes
Sep 3, 2024
cpcallen
added a commit
to cpcallen/blockly-samples
that referenced
this pull request
Sep 3, 2024
For some reason the last time we ran publish, the publish commit 7d3e23f removed all the trailing newlines from our package-lock.json files. In RaspberryPiFoundation#2453 rachel-fenichel proposes adding these files to our .prettierignore.rc, but for now I'll just fix the files so that the format check passes.
cpcallen
added a commit
to cpcallen/blockly-samples
that referenced
this pull request
Sep 11, 2024
For some reason the last time we ran publish, the publish commit 7d3e23f removed all the trailing newlines from our package-lock.json files. In RaspberryPiFoundation#2453 rachel-fenichel proposes adding these files to our .prettierignore.rc, but for now I'll just fix the files so that the format check passes.
cpcallen
added a commit
that referenced
this pull request
Sep 26, 2024
* fix(field-*): Remove unneeded fieldRegistry.unregister calls Since FieldAngle, FieldColour and FieldMultilineInput are no longer in core, there's no longer any need for their corresponding plugins to unregister the built-in version. * chore(deps): Restore newlines in package-lock.json files For some reason the last time we ran publish, the publish commit 7d3e23f removed all the trailing newlines from our package-lock.json files. In #2453 rachel-fenichel proposes adding these files to our .prettierignore.rc, but for now I'll just fix the files so that the format check passes. * chore(field-*): Remove unneeded uninstallBlocks test helpers
cpcallen
reviewed
May 6, 2025
| "postinstall": "npm run boot" | ||
| "build": "lerna run build", | ||
| "clean": "lerna run clean", | ||
| "clean:node": "lerna run clean --yes", |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been lerna clean --yes.
cpcallen
added a commit
that referenced
this pull request
May 6, 2025
This was inadvertently broken by a mistranscription in PR #2453.
1 task
cpcallen
added a commit
to cpcallen/blockly-samples
that referenced
this pull request
May 7, 2025
This was inadvertently broken by a mistranscription in PR RaspberryPiFoundation#2453.
cpcallen
added a commit
to cpcallen/blockly-samples
that referenced
this pull request
May 8, 2025
This was inadvertently broken by a mistranscription in PR RaspberryPiFoundation#2453.
cpcallen
added a commit
to cpcallen/blockly-samples
that referenced
this pull request
May 8, 2025
This was inadvertently broken by a mistranscription in PR RaspberryPiFoundation#2453.
1 task
maribethb
pushed a commit
that referenced
this pull request
May 9, 2025
…4` (#2504) * fix: Fix clean:node script This was inadvertently broken by a mistranscription in PR #2453. * chore(deps): Update blockly to v12.0.0-beta.4 * fix(FieldColour): Fix type of FieldColour.prototype.isFullBlockField Method on superclass became public in v12.0.0. * fix(FieldMultilineInput): Use string literal instead of Field.NBSP Workaround for removal of that constant in RaspberryPiFoundation/blockly#8738. * fix(FieldGridDropdown): Fix type error caused by separators
gonfunko
pushed a commit
to gonfunko/blockly-samples
that referenced
this pull request
May 14, 2025
This was inadvertently broken by a mistranscription in PR RaspberryPiFoundation#2453.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The basics
The details
Resolves
Fixes an issue where lerna commands could not be run from the root
package.jsonfile. For instance, thebuildscript iscd plugins && lerna run build, which was failing.The issue was that
npm runuses the contents ofnode-modules/.binin the directory where it is run. The command was run at the root level, meaning that lerna was expected to be installed at the root level, but due to #2446 lerna is only installed insideexamples/andplugins.Calling
cd plugins && npm run build, withbuilddefined aslerna run buildin the pluginpackage.json, resolves this issue by changing which directory lerna is expected to be installed in.Verified by running several of the changed commands from the top level, including
build,deploy:prepare, andclean.Proposed Changes
package.jsonfile, all of which just call lerna commands.package.jsonscripts to usenpm run <command>instead oflerna run <command>after changing directories.Additional Information
I'm moderately concerned by other changes in
blockly-samplespassing PR checks when this was broken. What were they using for lerna? How was building and testing working?