-
Notifications
You must be signed in to change notification settings - Fork 79
fix: update deno run commands to set node-modules-dir to false #6771
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
base: main
Are you sure you want to change the base?
Conversation
aaea002 to
962297f
Compare
| (Netlify Build completed in 1ms)␊ | ||
| Build step duration: Netlify Build completed in 1ms` | ||
|
|
||
| ## In integration dev mode, install local plugins and install the integration when forcing build |
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.
How come this is getting removed?
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.
This test does not exist - which is why the snapshot was removed when I regenerated snapshots
| importMapData, | ||
| vendorDirectory, | ||
| } | ||
| const flags = ['--allow-all', '--no-config', `--import-map=${bundlerImportMap}`] |
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.
Is it necessary to do this on the ESZIP flow as well? I suppose it shouldn't have any negative impact since in this case we're only running the ESZIP bundler script and we won't find any node modules in there.
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 believe this is required yeah, the .deno folder was being made until I also added this flag here
Reorders the code to add vendor import maps before bundle generation starts. This ensures the import map is properly initialized with vendor dependencies before any bundling logic executes, preventing potential issues with missing dependencies during the bundling process.
Enables manual node modules directory handling in both eszip and tarball bundling formats. This change provides more granular control over how node modules are resolved during the bundling process, ensuring consistent behavior across different bundling targets.
83902f0 to
3893be8
Compare
3893be8 to
654f9fc
Compare
Adds the
--node-modules-dir=falseflag to deno bundle commands in both tarball and eszip bundling formats. This ensures consistent handling of node modules during edge function bundling and updates related tests to reflect the new flag usage. The change improves reliability of the bundling process by explicitly disabling node modules directory handling.This will stop our bundling step from accidentally adding a
.denofolder into thenode_modulesfolder, which was causing issues for builds which use a cachednode_modulesfolderThis was a bit difficult to test out locally, I instead did a manual test using buildbot via https://github.com/netlify/buildbot/pull/3874 and then making a site's build use this custom buildbot image