[go: nahoru, domu]

Skip to content
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

feat(vendor): support for npm specifiers #19186

Merged
merged 9 commits into from
May 19, 2023

Conversation

dsherret
Copy link
Member
@dsherret dsherret commented May 18, 2023

We never properly added support for this. This fixes vendoring when it has npm or node specifiers. Vendoring occurs by adding a "nodeModulesDir": true property to deno.json then it uses a local node_modules directory. This can be opted out by setting "nodeModulesDir": false or running with --node-modules-dir=false.

Closes #18090
Closes #17210
Closes #17619
Closes #16778

@dsherret dsherret mentioned this pull request May 18, 2023
25 tasks
@dsherret dsherret added this to the 1.34 milestone May 19, 2023
@dsherret dsherret marked this pull request as ready for review May 19, 2023 16:04
@dsherret dsherret requested a review from bartlomieju May 19, 2023 16:11
Copy link
Member
@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one suggestion. Awesome work!

cli/tools/vendor/mod.rs Outdated Show resolved Hide resolved
@dsherret dsherret enabled auto-merge (squash) May 19, 2023 22:26
@dsherret dsherret merged commit cc406c8 into denoland:main May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants