Update NCC; pin fetch to v2#71
Conversation
I'll see if I can create an autofix CI to do this, unless you know a better way! |
An autofix CI job would be awesome as there have been a couple of dependabot updates to the lockfile, too that have not resulted in a index.js update. |
|
@nickodell if you're motivated to try, you could add a version of this job (can be in this PR): https://github.com/mne-tools/mne-installers/blob/main/.github/workflows/outdated.yml If not I'll do it tomorrow hopefully |
I'm afraid I'm not motivated. I am already three layers deep into yak shaving, and I don't want any new yaks. |
|
Good bot, thanks for shaving that yak 🐮 (closest emoji I could think of to a yak!) In it goes, thanks @nickodell ! |
* upstream/master: Update NCC; pin fetch to v2 (scientific-python#71) ENH: Add automatic rebuild (scientific-python#72) Build(deps): Bump undici from 5.28.5 to 5.29.0 Making config example and narrative consistent (scientific-python#67)
|
I'm just generating noise, sorry about it. But I really like the yak analogy and will start using it myself as it's a nice counterpart for the new puppies of newly added features, (what about 🐂🏔️?) |
Update NCC; pin fetch to v2
Reference Issue
#70
Reasoning behind change
I found that when using the version of NCC installed by package.json, the compiler is not capable of understanding many of the constructs within this code and its dependencies. For example, I get this error:
The version of NCC that the package.json refers to is no longer supported upstream. Instead, use
@vercel/nccto provide this.I also found that it was necessary to pin node fetch to a pre v3 version. If this is not done, I get the following error when running the action:
As far as I can tell, this is caused by node-fetch@v3 being ESM-only, where we use a CommonJS style import.
I have not re-generated dist/index.js using these settings. I assume that since this is essentially an object file, you would prefer to have a trusted maintainer do this. If you prefer that I do this step, I can add this to the PR.