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

fix(optimizer): detect npm / yarn / pnpm dependency changes correctly (#17336) #18560

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DreierF
Copy link
Contributor

@DreierF DreierF commented Nov 3, 2024

Description

Fixes #17336 for npm and yarn and pnpm

@DreierF DreierF changed the title fix (deps-optimization): detect pnpm dependency changes correctly (#17336) fix(deps-optimization): detect pnpm dependency changes correctly (#17336) Nov 3, 2024
@DreierF DreierF changed the title fix(deps-optimization): detect pnpm dependency changes correctly (#17336) fix(deps-optimization): detect ppnpm dependency changes correctly (#17336) Nov 3, 2024
@DreierF DreierF changed the title fix(deps-optimization): detect ppnpm dependency changes correctly (#17336) fix(deps-optimization): detect npm and pnpm dependency changes correctly (#17336) Nov 3, 2024
@sapphi-red sapphi-red added p4-important Violate documented behavior or significantly improves performance (priority) feat: deps optimizer Esbuild Dependencies Optimization labels Nov 5, 2024
@sapphi-red sapphi-red changed the title fix(deps-optimization): detect npm and pnpm dependency changes correctly (#17336) fix(optimizer): detect npm / yarn / pnpm dependency changes correctly (#17336) Nov 6, 2024
sapphi-red
sapphi-red previously approved these changes Nov 6, 2024
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

I think we need to update how we check for the patches directory too if checkPatches is true. For example if we found lockFilePath to be <project>/node_modules/.package-lock.json, we should be checking <project>/patches/

@sapphi-red sapphi-red dismissed their stale review November 6, 2024 05:37

see bluwy's comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: deps optimizer Esbuild Dependencies Optimization p4-important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency pre-bundling cache created with outdated files after branch change
3 participants