-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refreshed and improved to support bootstraping of major upgrade PR π #143
Conversation
Basic addressing of #52
used latest version supporting require
default is still the new introduce --force-with-lease mode
async/await refactors and use instead p-* family from sindresorhus, in a version supporting requires
test/integration/package.json
Outdated
@@ -21,7 +21,8 @@ | |||
"author": "Mr X @Coorp", | |||
"license": "MIT", | |||
"engines": { | |||
"node": "^18.0.0" | |||
"node": "^12.22.12", |
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.
why targeting node 12 ?
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.
mmmm, good catch. looks like an oversight!
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.
@adamska27 the nvmrc wasn't updated in the node 18. So running code locally restored the test version.
I just updated the all the version in the test/integration (in bbfa790)
@@ -15,7 +15,8 @@ | |||
], | |||
"rules": { | |||
"no-continue": "off", | |||
"fp/no-loops": "off" | |||
"fp/no-loops": "off", | |||
"no-nested-ternary": "off", |
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.
π
@@ -74,9 +81,23 @@ const resolveConfig = async (config, configPath, argv) => { | |||
base.node.travis = defaultWithPath(base.node.travis, '.travis.yml'); | |||
base.node.package = defaultWithPath(base.node.package, 'package.json'); | |||
} | |||
base.argv = argv; | |||
base.forceFlag = argv.force ? '--force' : '--force-with-lease'; |
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.
what are the scenario where you would use --force without lease π β
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.
I had to few time to use it doing testing.
π |
β¦more resilient πͺ (#147) Merge pull request #147 from CoorpAcademy/refreshed-and-improved--more New huge set of enhancements to the project, following #143 with main goal to make this usable on project with no prior config, and handle command lib with adherence to node version (lerna and serverless). Also program was improved not to require a clean state before running. Less config is needed, the program can be run out of the box on any node repository ------ Exemple of command ran: (that boostrapped that PR: CoorpAcademy/coorpacademy-lambda#1590) ```bash update-node upgrade --target 20 -dcam "Update-node major bump π€" -R @CoorpAcademy/development-mooc -F api-media -s media ``` flags: - `d` for default config π 7eb2685 - `c` for clean, cleanup before running π c6e0220 - `a` for autofigure what to do - `target`(t) to search to bump for a specific node version (from #143) - `F` to target a folder (was ran from `coorpacademy-lambda` root (from #143) - `s` to `scope` in monorepo (scoped added in title and branch name) π a1faa74 - `R` to set reviewer (from #143) ------ serverless+lerna support: Serverless runtime will be updated, and every package in a lerna mono repo will be updated β‘π² 8fffb7f + 22dcf55 Some adjustement where also made for the program to be more flexible with the baseBranch, supporting non `master` branches
Merge pull request #148 from CoorpAcademy/refreshed-and-improved--more-more #143 and #147 follow up, with few enhancement and glitch fixes - Sync the package-lock (by default, and with node nvm version loaded) π - Add hook `-b`/`--pre-commit-bump-command` to inject commands (like updating a specific package with `ncu`) πͺ - Restore force push for the autobump βοΈ
Huge set of enhancements to the project, with main goals to refresh dependencies and to support the add hoc draft of major bump pull requests
Refreshing π¬οΈ
New features π