-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Move Node.js package.json to platform/node #2343
Conversation
Bloaty Results (iOS) 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results-ios/pr-2343-compared-to-main.txt |
Bloaty Results 🐋Compared to main
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2343-compared-to-main.txtCompared to d387090 (legacy)
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/bloaty-results/pr-2343-compared-to-legacy.txt |
Benchmark Results ⚡
Full report: https://maplibre-native.s3.eu-central-1.amazonaws.com/benchmark-results/pr-2343-compared-to-main.txt |
I added some changes to merge into this in your repo This fixes the node-release workflow so it will work with these changes |
Move node pr
@acalcutt Awesome! |
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.
Seemed to work fine to me in my test fork. I would have to cherry pick this into the opengl-2 to keep it in line with this.
One thing to note is I think this makes it harder to make a package that can build on it's own, like my attempt in #535 . From my testing there though, this package is kind of heavy to build on the fly anyway so I'm not sure that is a good approach.
For package.json, I wonder if the dev dependencies can be trimmed down any... I doubt all those are used by the package.
One thing I just noticed is how does the ci pass if there is no new package-lock.json? Edit: Oh I see, the
is actually part of the maplibre-native build, so it is not in the node directory. |
The only other thing I see is maybe there should be a package-lock.json in 'platform/node'. I had that in my directory when testing the release. I think it is needed because the publish step does a 'npm ci --ignore-scripts', which would check that file. |
Great idea. Alternatively to a package lock inside the node, we could add a pnpm-workspace.yml and use pnpm in ci as well |
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
I want to split the
package.json
for the Node.js package and thepackage.json
used to define the dependencies for the various scripts used. Will probably fail.@acalcutt What do you think about this?
I probably need to update a few other paths.
Closes #1334