You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Yarn2 plugin that will upgrade all dependencies to their latest version with one simple command',
85
-
details: 'This command will upgrade all dependencies to their latest version',
86
-
examples: [
87
-
[
88
-
`Upgrade all dependencies`,
89
-
`yarn up-all`
90
-
],
91
-
[
92
-
`Upgrade all dependencies but exclude a single dependency`,
93
-
`yarn up-all --exclude react-dom`
94
-
],
95
-
[
96
-
`Upgrade all dependencies but exclude multiple dependencies`,
97
-
`yarn up-all --exclude "react-dom react-router"`
98
-
]]
99
-
});
100
-
101
-
return{
102
-
commands: [
103
-
UpAllCommand,
104
-
],
105
-
};
106
-
}
107
-
};
1
+
module.exports={name:"yarn-up-all-plugin",factory:a=>{const{Configuration:b,Project:c}=a("@yarnpkg/core"),{Cli:d,Command:e}=a("clipanion"),f=a("yup"),g=a("@yarnpkg/plugin-essentials"),h=(a,b)=>a?`@${a}/${b}`:b,i=(a,b)=>{constc=[...a.values()];returnb?c.filter(a=>{constc=h(a[1].scope,a[1].name);return!b.includes(c)}):c};classjextendse{asyncexecute(){if(!g.default.commands)thrownewError("Yarn commands are not available!");consta=awaitb.find(this.context.cwd,this.context.plugins),{workspace:e}=awaitc.find(a,this.context.cwd),f=[...e.manifest.dependencies,...e.manifest.devDependencies],j=i(f,this.exclude?this.exclude.split(" "):null),k=j.map(a=>h(a[1].scope,a[1].name)),l=d.from(g.default.commands);returnl.runExit(["up",...k],this.context)}}returnj.addOption("exclude",e.String("--exclude")),j.addPath("up-all"),j.schema=f.object().shape({exclude:f.string()}),j.usage=e.Usage({description:"Yarn2 plugin that will upgrade all dependencies to their latest version with one simple command",details:"This command will upgrade all dependencies to their latest version",examples:[["Upgrade all dependencies","yarn up-all"],["Upgrade all dependencies but exclude a single dependency","yarn up-all --exclude react-dom"],["Upgrade all dependencies but exclude multiple dependencies","yarn up-all --exclude \"react-dom react-router\""]]}),{commands:[j]}}};
0 commit comments