-
-
Notifications
You must be signed in to change notification settings - Fork 375
[Swup] For Swup's dev dependencies exclusion from our yarn.lock #2221
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
[Swup] For Swup's dev dependencies exclusion from our yarn.lock #2221
Conversation
3c7ecaa
to
ae52ae5
Compare
"@swup/prettier-config": "link:node_modules/.cache/null", | ||
"@swup/browserslist-config": "link:node_modules/.cache/null", | ||
"microbundle": "link:node_modules/.cache/null", | ||
"prettier": "link:node_modules/.cache/null", | ||
"shelljs": "link:node_modules/.cache/null", | ||
"shelljs-live": "link:node_modules/.cache/null" |
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 wasn't able to configure Yarn resolutions to be more precise about what dependencies I want to remove, something like "@swup/plugin/microbundle": "link:node_modules/.cache/null"
.
Do to that, I think we must upgrade to Yarn Berry
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.
#2222 :)
Thanks a lot @Kocal 😃 |
This PR was merged into the 2.x branch. Discussion ---------- Replace Yarn Berry by PNPM | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Purely internal, this PR replaces Yarn by PNPM for the following reasons: - when working on #2222, I tried to use PNPM instead but it was not possible to not install [Swup "dev"-dependencies](#2221), this is now possible - it is [more efficient and performant](https://pnpm.io/benchmarks), and better for your disk - it has more [features](https://pnpm.io/feature-comparison), better Workspaces support and [Catalogs](https://pnpm.io/catalogs) 🤩 - commands to release packages on npm are simpler For developers working on UX, [pnpm can be installed with Corepack](https://pnpm.io/installation#using-corepack) Note: the ~26k lines changed are mainly about lock files Commits ------- 17a4bb7 Replace Yarn Berry by PNPM
While working on #2219, I've noticed we had a very old Rollup version that we do not use at all.
The issue comes from Swup v3, which ship its building dependencies as prod dependencies, which means we install
microbundle
and all its dependencies:This PR won't impact developers, it's only for our
yarn.lock
which contains a bunch of useless dependencies, and some of them are vulnerable too (listed on https://github.com/symfony/ux/security/dependabot)