Comments (12)
It makes a lot of sense to use the new plugin framework.
I'll try to look into writing a plugin (or reviving https://github.com/eps1lon/yarn-plugin-deduplicate) soon, first I need to understand how the plugin system works and get my hands on a few yarn v2 repos with duplicated packages to test everything.
If anyone wants to start working on it meanwhile, it would be great :)
from yarn-deduplicate.
There is also this yarnpkg/berry#1558
from yarn-deduplicate.
@JounQin note that I have working fork here https://github.com/christophehurpeau/yarn-deduplicate / https://www.npmjs.com/package/yarn-berry-deduplicate
I hope to convert it to a yarn plugin some day if this is still not implemented in yarn
from yarn-deduplicate.
yarn berry is under very active development,
I believe it will be possible to bake that into it
from yarn-deduplicate.
@scinos @rjatkins any thoughts on this? For v2/berry it could be designed as a plugin rather than a separate tool, so we could run yarn deduplicate
instead of yarn-deduplicate
. I.e. the approach of (the unmaintained?) https://github.com/eps1lon/yarn-plugin-deduplicate
from yarn-deduplicate.
^ just landed, so I guess this can be closed?
from yarn-deduplicate.
yarnplugins/yarn-plugin-deduplicate#13
I hope we can reconsider this.
I'll raise a PR for it like ds300/patch-package#507.
from yarn-deduplicate.
@christophehurpeau Thanks for your information, but I'd like to raise a PR for yarn-deduplicate
itself to support yarn v1 and v2+ at the same time~
from yarn-deduplicate.
Yarn V2+ supports yarn dedupe
natively. What's the goal of adding support for V2 to this tool?
from yarn-deduplicate.
Yarn V2+ supports yarn dedupe natively. What's the goal of adding support for V2 to this tool?
It doesn't support --strategy fewer
, yet.
See also yarnpkg/berry#2297
from yarn-deduplicate.
Looks like nobody is opposed to add the fewer
strategy to Yarn.
I haven't looked at the yarn dedupe
code in ages, but, from memory, it was really similar to yarn-deduplicate
. Meaning that implementing the strategy should be relatively easy.
I may have some time this week to have a look.
from yarn-deduplicate.
I may have some time this week to have a look.
Do you mean you want to work this this week? That would be great! I and my colleague were going to working on this feature also but on yarn-deduplicate
's side.
The benefit is, we can use prepare: yarn-duplicate
script to run yarn-duplicate
every time on installation. But prepare: yarn dedupe
will run into a dead loop, at least for now.
(For prepare script support for yarn berry, see also https://github.com/un-es/yarn-plugin-prepare-lifecycle)
Besides, can we reopen this issue first?
from yarn-deduplicate.
Related Issues (20)
- still have duplicate packages after run yarn-deduplicate HOT 1
- failed to deduplicate http url versions HOT 2
- Give a friendlier message for --fail --list HOT 3
- Error: unknown option '--exclude-scopes' HOT 1
- yarn-deduplicate: command not found HOT 1
- Auto install after `yarn.lock` changed via `yarn-deduplicate` util it is stable HOT 4
- Issues with yarn 2 HOT 1
- Lower tslib dependency HOT 3
- List remaining duplicate packages
- Not aggregating when specific "version" property is differently setted HOT 3
- Yarn.lock
- Strategy that prefers "primary" version (specified in package.json)
- Feature request: log stats HOT 2
- Document how to specify a strategy
- Diagnosis for dependencies with non-overlapping versions HOT 1
- Feature request: --check flag HOT 3
- Dependency Dashboard
- Breaking change with recent Yarn update HOT 2
- Updating Packages already de-duped by yarn HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yarn-deduplicate.