ripencli 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -575,8 +575,7 @@ function parseYarnOutdated(raw, global) {
|
|
|
575
575
|
//#region src/executor.ts
|
|
576
576
|
function buildUpdateCommands(manager, packages, global = false, sfwFirewall = false) {
|
|
577
577
|
const commands = [];
|
|
578
|
-
const
|
|
579
|
-
const devDeps = packages.filter((p) => !global && p.type === "devDependencies");
|
|
578
|
+
const localPkgs = packages.filter((p) => !global && p.type !== "global");
|
|
580
579
|
const globalPkgs = packages.filter((p) => global || p.type === "global");
|
|
581
580
|
const makeCmd = (mgr, pkgs, flags) => {
|
|
582
581
|
const pkgArgs = pkgs.map((pkg) => {
|
|
@@ -594,8 +593,7 @@ function buildUpdateCommands(manager, packages, global = false, sfwFirewall = fa
|
|
|
594
593
|
]).join(" ")}`;
|
|
595
594
|
return sfwFirewall ? `sfw ${cmd}` : cmd;
|
|
596
595
|
};
|
|
597
|
-
if (
|
|
598
|
-
if (devDeps.length > 0) commands.push(makeCmd(manager, devDeps, [manager === "bun" ? "-d" : "-D"]));
|
|
596
|
+
if (localPkgs.length > 0) commands.push(makeCmd(manager, localPkgs, []));
|
|
599
597
|
if (globalPkgs.length > 0) {
|
|
600
598
|
const byManager = /* @__PURE__ */ new Map();
|
|
601
599
|
for (const pkg of globalPkgs) {
|