-
Notifications
You must be signed in to change notification settings - Fork 79
fix: update deno run commands to set node-modules-dir to manual #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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,6 +123,10 @@ export const bundle = async ( | |
| vendorDirectory, | ||
| }) | ||
|
|
||
| if (vendor) { | ||
| importMap.add(vendor.importMap) | ||
| } | ||
|
|
||
|
Comment on lines
+126
to
+129
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this fixes a bug where we were not including npm/vendor dependencies for our tarball bundles |
||
| const bundles: Bundle[] = [] | ||
|
|
||
| if (featureFlags.edge_bundler_generate_tarball || featureFlags.edge_bundler_dry_run_generate_tarball) { | ||
|
|
@@ -156,10 +160,6 @@ export const bundle = async ( | |
| } | ||
| } | ||
|
|
||
| if (vendor) { | ||
| importMap.add(vendor.importMap) | ||
| } | ||
|
|
||
| bundles.push( | ||
| await bundleESZIP({ | ||
| basePath, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,6 +88,7 @@ export const bundle = async ({ | |
| '--quiet', | ||
| '--code-splitting', | ||
| '--allow-import', | ||
| '--node-modules-dir=manual', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixes the bug where Deno was adding a |
||
| '--outdir', | ||
| bundleDir.path, | ||
| ...functions.map((func) => func.path), | ||
|
|
||
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