Skip to content
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

Upgrade repo to lerna v8 and Node 18 #2209

Merged
merged 31 commits into from
Oct 2, 2024
Merged

Upgrade repo to lerna v8 and Node 18 #2209

merged 31 commits into from
Oct 2, 2024

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Sep 27, 2024

Goal

Upgrades the lerna version from v4 to v8, and upgrades the repo to use Node 18 for devlopment (required by lerna v8)

Design

Upgrading lerna to v8 means removing the deprecated bootstrap command and switching to npm workspaces, which in turn means that packages are now installed into the top-level node_modules directory. Many of the changes within the individual packages are dealing with the fallout of this in order to fix linting, unit tests and typescript errors.

All CI dockerfiles and steps that build the packages also had to be upgraded to node 18 as a result.

Changeset

  • Bumped lerna version to latest v8
  • Bumped all build scripts, docker images and CI steps to use node 18
  • Removed some lerna-related dependency overrides that were no longer required
  • Fixed typescript build:
    • added some overrides for certain @types/* packages to maintain compatibility with the current typescript version
    • all react-native-related packages now have separate tsconfig and are type-checked separately to avoid conflicts with the root tsconfig
  • Upgraded the angular test fixture to Angular 10
  • Upgraded the aws lambda test fixtures to Node 18
  • Removed IE 8,9 and 10 from browser CI pipeline

Testing

Covered by a full CI run

@yousif-bugsnag yousif-bugsnag force-pushed the lerna-bump branch 9 times, most recently from 5e919ec to 8d9bb90 Compare October 1, 2024 14:02
Comment on lines -128 to -130
- ie_8
- ie_9
- ie_10
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@@ -23,6 +23,6 @@
},
"devDependencies": {
"@bugsnag/core": "^8.0.0",
"@types/koa": "^2.11.3"
"@types/koa": "2.13.4"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this pinned due to an issue with unit testing? would be good to add a task to update this and validate it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's pinned to the latest version compatible with our current typescript version - this can be reviewed if/when we upgrade typescript

@yousif-bugsnag yousif-bugsnag marked this pull request as ready for review October 1, 2024 16:28
@gingerbenw
Copy link
Member Author

I raised this PR so I can't directly approve it - but I'm happy with the changes so feel free to Approve. 👍🏻

@gingerbenw
Copy link
Member Author

Failing PR diff bot test is caused by the removal of the Lerna bootstrap command and should be fine for the next PR

@yousif-bugsnag yousif-bugsnag self-requested a review October 1, 2024 16:33
@yousif-bugsnag yousif-bugsnag changed the title Lerna bump Upgrade repo to lerna v8 and Node 18 Oct 1, 2024
@yousif-bugsnag
Copy link
Contributor

force-merging with expected PR diff bot failure

@yousif-bugsnag yousif-bugsnag merged commit 81a2e90 into next Oct 2, 2024
124 of 125 checks passed
@yousif-bugsnag yousif-bugsnag deleted the lerna-bump branch October 2, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants