-
Notifications
You must be signed in to change notification settings - Fork 373
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 build stack to pnpm, Node 16, Lerna 6 #2148
Conversation
lucas-koehler
commented
Jun 13, 2023
•
edited
Loading
edited
- Move to Node 16.13+
- Use PNPM 8.5+ as package manager instead of NPM
- Upgrade to Lerna 6
- Explicitly add all needed dependencies to packages as PNPM does not hoist application dependencies
- Use explicit PNPM workspace references for jsonforms packages
- Increase various dependencies to reflect the actually needed versions
- Migrate to Jest 27
- Increase Typedoc version to ~0.21.9 to be compatible with Node 16
- Increase base lib version from ES6 to ES2016
- Improve stability of prepare example apps script
- BREAKING: Remove vue2 to avoid migration cost
- ci: Increase Node's available RAM for test execution to 4GB
- Set pnpm's dependency resolution to highest compatible (same as npm)
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
51938da
to
22f092d
Compare
@sdirix The netlify build fails because node 16 and pnpm are not available there, yet. |
b8578ab
to
d1c5b2e
Compare
@sdirix I rebased the changes. Netlify still fails as it does not have pnpm and node 16 configured. |
d1c5b2e
to
dd97900
Compare
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 a first look and only very minor comments. As a next step I will actually test it.
Seems the mac tests still fail. So let's exclude them again and create a follow up issue to fix them |
- Move to Node 16.13+ - Use PNPM 8.5+ as package manager instead of NPM - Upgrade to Lerna 6 - Explicitly add all needed dependencies to packages as PNPM does not hoist dependencies - Use explicit PNPM workspace references for jsonforms packages - Increase various dependencies as PNPM installs the specified version by default instead of the highest possible one - Migrate to Jest 27 - Increase Typedoc version to ~0.21.9 to be compatible with Node 16 TODO: Fix Setup for the vue packages
- Update dependencies - Directly configure jest with ts-jest in vue package to make tests work
- Core uses Array.includes only contained in ES2016 - ES2016 is supported by all relevant browsers
Adapt path to copy the css theme file to the local node_modules folder created by pnpm
97ea030
to
a508131
Compare
@sdirix I applied your suggestions and rebased the changes. The latest 2 commits are new. |
Follow up issue to fix the macOS tests: #2159 |
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.
Works great for me!
e927c4e
to
7a281d7
Compare