@storm-software/pnpm-tools 0.7.143 → 0.7.145
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/CHANGELOG.md +16 -0
- package/bin/pnpm.cjs +2 -2
- package/bin/pnpm.js +2 -2
- package/dist/{chunk-6CX4763X.js → chunk-IO6HZNAO.js} +1 -1
- package/dist/{chunk-WFRUCCZZ.js → chunk-N2BUDGF7.js} +1 -1
- package/dist/{chunk-TH5YECSK.cjs → chunk-O6SS6P3Y.cjs} +1 -1
- package/dist/{chunk-V7JGEXDU.cjs → chunk-R7G6VIBE.cjs} +1 -1
- package/dist/helpers/catalog.cjs +1 -1
- package/dist/helpers/catalog.js +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/replace-deps-aliases.cjs +1 -1
- package/dist/helpers/replace-deps-aliases.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.7.145](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.145) (08/09/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **config** to **v1.138.67**
|
|
10
|
+
- Updated **config-tools** to **v1.190.131**
|
|
11
|
+
- Updated **npm-tools** to **v0.6.251**
|
|
12
|
+
- Updated **package-constants** to **v0.1.143**
|
|
13
|
+
- Updated **testing-tools** to **v1.119.283**
|
|
14
|
+
|
|
15
|
+
## [0.7.144](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.144) (08/09/2026)
|
|
16
|
+
|
|
17
|
+
### Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated **npm-tools** to **v0.6.250**
|
|
20
|
+
|
|
5
21
|
## [0.7.143](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.143) (08/08/2026)
|
|
6
22
|
|
|
7
23
|
### Updated Dependencies
|
package/bin/pnpm.cjs
CHANGED
|
@@ -2205,7 +2205,7 @@ var import_commander = require("commander");
|
|
|
2205
2205
|
// package.json
|
|
2206
2206
|
var package_default = {
|
|
2207
2207
|
name: "@storm-software/pnpm-tools",
|
|
2208
|
-
version: "0.7.
|
|
2208
|
+
version: "0.7.145",
|
|
2209
2209
|
private: false,
|
|
2210
2210
|
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2211
2211
|
repository: {
|
|
@@ -2345,7 +2345,7 @@ async function getRegistry(executable = "npm") {
|
|
|
2345
2345
|
|
|
2346
2346
|
// ../npm-tools/src/helpers/get-version.ts
|
|
2347
2347
|
var BENIGN_PACKAGE_MANAGER_STDERR_LINE = /^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i;
|
|
2348
|
-
var BENIGN_PACKAGE_MANAGER_ENV_LINE = /^\[[\d.]+ms\].*(?:\.env(?:\.local)
|
|
2348
|
+
var BENIGN_PACKAGE_MANAGER_ENV_LINE = /^\[[\d.]+ms\].*(?:\.env(?:\.local)?|"\.env)/i;
|
|
2349
2349
|
function isBenignPackageManagerOutput(line) {
|
|
2350
2350
|
const trimmed = line.trim();
|
|
2351
2351
|
if (!trimmed) {
|
package/bin/pnpm.js
CHANGED
|
@@ -2183,7 +2183,7 @@ import { Command } from "commander";
|
|
|
2183
2183
|
// package.json
|
|
2184
2184
|
var package_default = {
|
|
2185
2185
|
name: "@storm-software/pnpm-tools",
|
|
2186
|
-
version: "0.7.
|
|
2186
|
+
version: "0.7.145",
|
|
2187
2187
|
private: false,
|
|
2188
2188
|
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2189
2189
|
repository: {
|
|
@@ -2323,7 +2323,7 @@ async function getRegistry(executable = "npm") {
|
|
|
2323
2323
|
|
|
2324
2324
|
// ../npm-tools/src/helpers/get-version.ts
|
|
2325
2325
|
var BENIGN_PACKAGE_MANAGER_STDERR_LINE = /^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i;
|
|
2326
|
-
var BENIGN_PACKAGE_MANAGER_ENV_LINE = /^\[[\d.]+ms\].*(?:\.env(?:\.local)
|
|
2326
|
+
var BENIGN_PACKAGE_MANAGER_ENV_LINE = /^\[[\d.]+ms\].*(?:\.env(?:\.local)?|"\.env)/i;
|
|
2327
2327
|
function isBenignPackageManagerOutput(line) {
|
|
2328
2328
|
const trimmed = line.trim();
|
|
2329
2329
|
if (!trimmed) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {a}from'./chunk-7QKHH2VM.js';import {h,e,i,f,c,b,a as a$1}from'./chunk-I3CX5PSA.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';import d from'strip-ansi';var U="latest";var $=U;async function V(r="npm"){return new Promise((t,n)=>{exec(`${r} config get registry`,(e,f,c)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?n(e):c&&!c.toLowerCase().trim().startsWith("npm warn")?n(c):t(f.trim()));})}var D=/^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i,k=/^\[[\d.]+ms\].*(?:\.env(?:\.local)
|
|
1
|
+
import {a}from'./chunk-7QKHH2VM.js';import {h,e,i,f,c,b,a as a$1}from'./chunk-I3CX5PSA.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';import d from'strip-ansi';var U="latest";var $=U;async function V(r="npm"){return new Promise((t,n)=>{exec(`${r} config get registry`,(e,f,c)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?n(e):c&&!c.toLowerCase().trim().startsWith("npm warn")?n(c):t(f.trim()));})}var D=/^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i,k=/^\[[\d.]+ms\].*(?:\.env(?:\.local)?|"\.env)/i;function L(r){let t=r.trim();return t?[t,d(t)].some(e=>!e||D.test(e)||k.test(e)||/ms\].*\.env/i.test(e)?true:/\[[\d.]+ms\].*\.env/i.test(t)):true}function H(r){return r.split(/\r?\n/).map(t=>d(t).trim()).filter(t=>t.length>0).filter(t=>!L(t)).join(`
|
|
2
2
|
`).trim()}function N(r){let t=d(r).split(/\r?\n/).map(n=>n.trim()).filter(Boolean);for(let n=t.length-1;n>=0;n-=1){let e=t[n];if(e&&valid(e,true))return e}return d(r).trim()}async function M(r,t=$,n={}){let e=n.executable||"npm",f=n.retries??3,c=n.timeout??1e4,u=n.registry||await V(e),a;for(let o=0;o<=f;o++)try{let i=new AbortController,s=setTimeout(()=>{i.abort();},c),m=await Promise.resolve(new Promise((b,_)=>{exec(`${e} view ${r} version --registry=${u}`,{signal:i.signal,maxBuffer:1024*1024*10},(l,F,I)=>{let T=I?H(I):"",x=N(F);if(valid(x,!0))return b(x);let y=l?.message?d(l.message).trim():"";return l&&y&&!y.toLowerCase().startsWith("npm warn")&&!L(y)?_(T?new Error(T,{cause:l}):l):T?_(new Error(T)):l?_(l):b(x)});}));if(!valid(m,!0))throw clearTimeout(s),new Error(d(m).startsWith("[WARN] Request took")?`A timeout occurred while fetching the version for package "${r}" with tag "${t}".`:`Invalid version "${m}" fetched for package "${r}" with tag "${t}"`);return clearTimeout(s),m}catch(i){if(a=i,o<f){let s=Math.pow(2,o)*100;await new Promise(m=>setTimeout(m,s));}}throw a}async function q(r=e(process.cwd())){let t=await h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([n,e])=>[n,e.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
|
|
3
3
|
File content: ${JSON.stringify(t,null,2)}`);}async function j(r=e(process.cwd())){let t=await q(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function J(r,t=e(process.cwd())){let n=await h(t);if(!n)throw new Error("No pnpm-workspace.yaml file found");n.catalog=Object.fromEntries(Object.entries(r).filter(([,e])=>e&&(e.startsWith("npm:")||valid(a(e),true))).map(([e,f])=>[e,f.replaceAll('"',"").replaceAll("'","")])),await i(n,t);}async function Rt(r,t,n={}){let{tag:e$1=$,prefix:f$1="^",workspaceRoot:c$1=e(),verbose:u=false}=n,a$1=await f(true,{workspaceRoot:c$1});u&&c(`Upgrading catalog entry for package "${t}" with tag "${e$1}"`,a$1);let o=await M(t,e$1,{executable:"pnpm"});if(!o)throw new Error(`Failed to fetch version for package "${t}" with tag "${e$1}"`);if(!valid(a(o),true))throw new Error(`Invalid version "${o}" fetched for package "${t}" with tag "${e$1}"`);let i=`${f$1||""}${a(o)}`,s=false;return r[t]?.startsWith("npm:")?(r[t]=i,b(`Writing version ${r[t]} to catalog for "${t}" package`,a$1)):!valid(coerce(r[t]))||coerce(r[t])&&coerce(i)&>(coerce(i),coerce(r[t]))?(r[t]=`${f$1||""}${a(i)}`,b(`Writing version ${r[t]} to catalog for "${t}" package`,a$1),s=true):u&&b(`The current version ${r[t]} for package "${t}" is greater than or equal to the version ${a(i)} fetched from the npm registry with tag "${e$1}". No update performed.`,a$1),{catalog:r,updated:s}}async function _t(r,t={}){let{tag:n=$,prefix:e$1="^",throwIfMissingInCatalog:f$1=false,workspaceRoot:c$1=e(),verbose:u=false}=t,a$2=await f(true,{workspaceRoot:c$1}),o=await j(c$1);if(!o)throw new Error("No catalog found");if(f$1===true&&!o[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(o,null,2)}`);u&&c(`Upgrading catalog entry for package "${r}" with tag "${n}"`,a$2);let i=await M(r,n,{executable:"pnpm"});if(!i)throw new Error(`Failed to fetch version for package "${r}" with tag "${n}"`);if(!valid(a(i),true))throw new Error(`Invalid version "${i}" fetched for package "${r}" with tag "${n}"`);let s=`${e$1||""}${a(i)}`;s===o[r]?u&&c(`The version for package "${r}" is already up to date in the catalog: ${s}`,a$2):!valid(a(o[r]),true)||coerce(o[r])&&coerce(s)&>(coerce(s),coerce(o[r]))?(o[r]=`${e$1||""}${a(s)}`,b(`Writing version ${o[r]} to catalog for "${r}" package`,a$2),await J(o,c$1)):u&&a$1(`The current version "${o[r]}" for package "${r}" is greater than or equal to the version "${s}" fetched from the npm registry with tag "${n}". No update performed.`,a$2);}export{q as a,j as b,J as c,Rt as d,_t as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-IO6HZNAO.js';import {d,e}from'./chunk-I3CX5PSA.js';import {readCachedProjectGraph,createProjectGraphAsync}from'@nx/devkit';import {existsSync}from'node:fs';import {readFile,writeFile}from'node:fs/promises';import {format}from'prettier';import N from'prettier-plugin-packagejson';async function F(c=process.cwd(),i=e(c)){let m=d(c,"package.json"),l=await readFile(m,"utf8");if(!l)throw new Error("No package.json file found in package root: "+c);let p=await b(i),a=JSON.parse(l),g=d(i,"pnpm-workspace.yaml");if(!existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),a;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let r of ["dependencies","devDependencies","peerDependencies"]){let o=a[r];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=readCachedProjectGraph();}catch{await createProjectGraphAsync(),n=readCachedProjectGraph();}let d$1={};n&&await Promise.all(Object.keys(n.nodes).map(async r=>{let o=n.nodes[r];if(o?.data.root){let e=d(i,o.data.root,"package.json");if(existsSync(e)){let t=await readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d$1[f.name]=f.version);}}}));for(let r of ["dependencies","devDependencies","peerDependencies"]){let o=a[r];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d$1[e])o[e]=`^${d$1[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return writeFile(m,await format(JSON.stringify(a),{parser:"json",proseWrap:"preserve",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:[N]}))}export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkR7G6VIBE_cjs=require('./chunk-R7G6VIBE.cjs'),chunkDCCUOXBC_cjs=require('./chunk-DCCUOXBC.cjs'),devkit=require('@nx/devkit'),fs=require('fs'),promises=require('fs/promises'),prettier=require('prettier'),N=require('prettier-plugin-packagejson');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var N__default=/*#__PURE__*/_interopDefault(N);async function x(c=process.cwd(),i=chunkDCCUOXBC_cjs.e(c)){let m=chunkDCCUOXBC_cjs.d(c,"package.json"),l=await promises.readFile(m,"utf8");if(!l)throw new Error("No package.json file found in package root: "+c);let p=await chunkR7G6VIBE_cjs.b(i),a=JSON.parse(l),g=chunkDCCUOXBC_cjs.d(i,"pnpm-workspace.yaml");if(!fs.existsSync(g))return console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${g}). Skipping pnpm catalog read for now.`),a;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let r of ["dependencies","devDependencies","peerDependencies"]){let o=a[r];if(o){for(let e of Object.keys(o))if(o[e]==="catalog:"){if(!p)throw new Error(`Dependency ${e} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`);let t=p[e];if(!t)throw new Error("Missing pnpm catalog version for "+e);o[e]=t;}else if(o[e].startsWith("catalog:"))throw new Error("multiple named catalogs not supported")}}let n;try{n=devkit.readCachedProjectGraph();}catch{await devkit.createProjectGraphAsync(),n=devkit.readCachedProjectGraph();}let d={};n&&await Promise.all(Object.keys(n.nodes).map(async r=>{let o=n.nodes[r];if(o?.data.root){let e=chunkDCCUOXBC_cjs.d(i,o.data.root,"package.json");if(fs.existsSync(e)){let t=await promises.readFile(e,"utf8"),f=JSON.parse(t);f.private!==true&&(d[f.name]=f.version);}}}));for(let r of ["dependencies","devDependencies","peerDependencies"]){let o=a[r];if(o){for(let e of Object.keys(o))if(o[e].startsWith("workspace:"))if(d[e])o[e]=`^${d[e]}`;else throw new Error(`Workspace dependency ${e} not found in workspace packages.`)}}return promises.writeFile(m,await prettier.format(JSON.stringify(a),{parser:"json",proseWrap:"preserve",trailingComma:"none",tabWidth:2,semi:true,singleQuote:false,quoteProps:"as-needed",insertPragma:false,bracketSameLine:true,printWidth:80,bracketSpacing:true,arrowParens:"avoid",endOfLine:"lf",plugins:[N__default.default]}))}exports.a=x;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var chunkWAL5SD4G_cjs=require('./chunk-WAL5SD4G.cjs'),chunkDCCUOXBC_cjs=require('./chunk-DCCUOXBC.cjs'),child_process=require('child_process'),semver=require('semver'),d=require('strip-ansi');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var d__default=/*#__PURE__*/_interopDefault(d);var O="latest";var $=O;async function U(r="npm"){return new Promise((t,n)=>{child_process.exec(`${r} config get registry`,(e,f,c)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?n(e):c&&!c.toLowerCase().trim().startsWith("npm warn")?n(c):t(f.trim()));})}var Y=/^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i,D=/^\[[\d.]+ms\].*(?:\.env(?:\.local)
|
|
1
|
+
'use strict';var chunkWAL5SD4G_cjs=require('./chunk-WAL5SD4G.cjs'),chunkDCCUOXBC_cjs=require('./chunk-DCCUOXBC.cjs'),child_process=require('child_process'),semver=require('semver'),d=require('strip-ansi');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var d__default=/*#__PURE__*/_interopDefault(d);var O="latest";var $=O;async function U(r="npm"){return new Promise((t,n)=>{child_process.exec(`${r} config get registry`,(e,f,c)=>e&&!e.message.toLowerCase().trim().startsWith("npm warn")?n(e):c&&!c.toLowerCase().trim().startsWith("npm warn")?n(c):t(f.trim()));})}var Y=/^(npm warn|\[[\d.]+ms\]|\[sys\]|\[warn\] request took)/i,D=/^\[[\d.]+ms\].*(?:\.env(?:\.local)?|"\.env)/i;function V(r){let t=r.trim();return t?[t,d__default.default(t)].some(e=>!e||Y.test(e)||D.test(e)||/ms\].*\.env/i.test(e)?true:/\[[\d.]+ms\].*\.env/i.test(t)):true}function k(r){return r.split(/\r?\n/).map(t=>d__default.default(t).trim()).filter(t=>t.length>0).filter(t=>!V(t)).join(`
|
|
2
2
|
`).trim()}function H(r){let t=d__default.default(r).split(/\r?\n/).map(n=>n.trim()).filter(Boolean);for(let n=t.length-1;n>=0;n-=1){let e=t[n];if(e&&semver.valid(e,true))return e}return d__default.default(r).trim()}async function C(r,t=$,n={}){let e=n.executable||"npm",f=n.retries??3,c=n.timeout??1e4,u=n.registry||await U(e),a;for(let o=0;o<=f;o++)try{let i=new AbortController,s=setTimeout(()=>{i.abort();},c),m=await Promise.resolve(new Promise((M,_)=>{child_process.exec(`${e} view ${r} version --registry=${u}`,{signal:i.signal,maxBuffer:1024*1024*10},(l,W,b)=>{let T=b?k(b):"",x=H(W);if(semver.valid(x,!0))return M(x);let y=l?.message?d__default.default(l.message).trim():"";return l&&y&&!y.toLowerCase().startsWith("npm warn")&&!V(y)?_(T?new Error(T,{cause:l}):l):T?_(new Error(T)):l?_(l):M(x)});}));if(!semver.valid(m,!0))throw clearTimeout(s),new Error(d__default.default(m).startsWith("[WARN] Request took")?`A timeout occurred while fetching the version for package "${r}" with tag "${t}".`:`Invalid version "${m}" fetched for package "${r}" with tag "${t}"`);return clearTimeout(s),m}catch(i){if(a=i,o<f){let s=Math.pow(2,o)*100;await new Promise(m=>setTimeout(m,s));}}throw a}async function N(r=chunkDCCUOXBC_cjs.e(process.cwd())){let t=await chunkDCCUOXBC_cjs.h(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([n,e])=>[n,e.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
|
|
3
3
|
File content: ${JSON.stringify(t,null,2)}`);}async function q(r=chunkDCCUOXBC_cjs.e(process.cwd())){let t=await N(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function j(r,t=chunkDCCUOXBC_cjs.e(process.cwd())){let n=await chunkDCCUOXBC_cjs.h(t);if(!n)throw new Error("No pnpm-workspace.yaml file found");n.catalog=Object.fromEntries(Object.entries(r).filter(([,e])=>e&&(e.startsWith("npm:")||semver.valid(chunkWAL5SD4G_cjs.a(e),true))).map(([e,f])=>[e,f.replaceAll('"',"").replaceAll("'","")])),await chunkDCCUOXBC_cjs.i(n,t);}async function Tt(r,t,n={}){let{tag:e=$,prefix:f="^",workspaceRoot:c=chunkDCCUOXBC_cjs.e(),verbose:u=false}=n,a=await chunkDCCUOXBC_cjs.f(true,{workspaceRoot:c});u&&chunkDCCUOXBC_cjs.c(`Upgrading catalog entry for package "${t}" with tag "${e}"`,a);let o=await C(t,e,{executable:"pnpm"});if(!o)throw new Error(`Failed to fetch version for package "${t}" with tag "${e}"`);if(!semver.valid(chunkWAL5SD4G_cjs.a(o),true))throw new Error(`Invalid version "${o}" fetched for package "${t}" with tag "${e}"`);let i=`${f||""}${chunkWAL5SD4G_cjs.a(o)}`,s=false;return r[t]?.startsWith("npm:")?(r[t]=i,chunkDCCUOXBC_cjs.b(`Writing version ${r[t]} to catalog for "${t}" package`,a)):!semver.valid(semver.coerce(r[t]))||semver.coerce(r[t])&&semver.coerce(i)&&semver.gt(semver.coerce(i),semver.coerce(r[t]))?(r[t]=`${f||""}${chunkWAL5SD4G_cjs.a(i)}`,chunkDCCUOXBC_cjs.b(`Writing version ${r[t]} to catalog for "${t}" package`,a),s=true):u&&chunkDCCUOXBC_cjs.b(`The current version ${r[t]} for package "${t}" is greater than or equal to the version ${chunkWAL5SD4G_cjs.a(i)} fetched from the npm registry with tag "${e}". No update performed.`,a),{catalog:r,updated:s}}async function Rt(r,t={}){let{tag:n=$,prefix:e="^",throwIfMissingInCatalog:f=false,workspaceRoot:c=chunkDCCUOXBC_cjs.e(),verbose:u=false}=t,a=await chunkDCCUOXBC_cjs.f(true,{workspaceRoot:c}),o=await q(c);if(!o)throw new Error("No catalog found");if(f===true&&!o[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(o,null,2)}`);u&&chunkDCCUOXBC_cjs.c(`Upgrading catalog entry for package "${r}" with tag "${n}"`,a);let i=await C(r,n,{executable:"pnpm"});if(!i)throw new Error(`Failed to fetch version for package "${r}" with tag "${n}"`);if(!semver.valid(chunkWAL5SD4G_cjs.a(i),true))throw new Error(`Invalid version "${i}" fetched for package "${r}" with tag "${n}"`);let s=`${e||""}${chunkWAL5SD4G_cjs.a(i)}`;s===o[r]?u&&chunkDCCUOXBC_cjs.c(`The version for package "${r}" is already up to date in the catalog: ${s}`,a):!semver.valid(chunkWAL5SD4G_cjs.a(o[r]),true)||semver.coerce(o[r])&&semver.coerce(s)&&semver.gt(semver.coerce(s),semver.coerce(o[r]))?(o[r]=`${e||""}${chunkWAL5SD4G_cjs.a(s)}`,chunkDCCUOXBC_cjs.b(`Writing version ${o[r]} to catalog for "${r}" package`,a),await j(o,c)):u&&chunkDCCUOXBC_cjs.a(`The current version "${o[r]}" for package "${r}" is greater than or equal to the version "${s}" fetched from the npm registry with tag "${n}". No update performed.`,a);}exports.a=N;exports.b=q;exports.c=j;exports.d=Tt;exports.e=Rt;
|
package/dist/helpers/catalog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkR7G6VIBE_cjs=require('../chunk-R7G6VIBE.cjs');require('../chunk-WAL5SD4G.cjs'),require('../chunk-DCCUOXBC.cjs');Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.d}});
|
package/dist/helpers/catalog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-
|
|
1
|
+
export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-IO6HZNAO.js';import'../chunk-7QKHH2VM.js';import'../chunk-I3CX5PSA.js';
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../chunk-QNTSKZUU.cjs');var
|
|
1
|
+
'use strict';require('../chunk-QNTSKZUU.cjs');var chunkO6SS6P3Y_cjs=require('../chunk-O6SS6P3Y.cjs'),chunkR7G6VIBE_cjs=require('../chunk-R7G6VIBE.cjs');require('../chunk-WAL5SD4G.cjs');var chunkDCCUOXBC_cjs=require('../chunk-DCCUOXBC.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkO6SS6P3Y_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.i}});
|
package/dist/helpers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'../chunk-
|
|
1
|
+
import'../chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'../chunk-N2BUDGF7.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-IO6HZNAO.js';import'../chunk-7QKHH2VM.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-I3CX5PSA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkO6SS6P3Y_cjs=require('../chunk-O6SS6P3Y.cjs');require('../chunk-R7G6VIBE.cjs'),require('../chunk-WAL5SD4G.cjs'),require('../chunk-DCCUOXBC.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkO6SS6P3Y_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as replaceDepsAliases}from'../chunk-
|
|
1
|
+
export{a as replaceDepsAliases}from'../chunk-N2BUDGF7.js';import'../chunk-IO6HZNAO.js';import'../chunk-7QKHH2VM.js';import'../chunk-I3CX5PSA.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-QNTSKZUU.cjs');var
|
|
1
|
+
'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-QNTSKZUU.cjs');var chunkO6SS6P3Y_cjs=require('./chunk-O6SS6P3Y.cjs'),chunkR7G6VIBE_cjs=require('./chunk-R7G6VIBE.cjs');require('./chunk-WAL5SD4G.cjs');var chunkDCCUOXBC_cjs=require('./chunk-DCCUOXBC.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkO6SS6P3Y_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkR7G6VIBE_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkDCCUOXBC_cjs.i}});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-GGNOJ77I.js';import'./chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'./chunk-
|
|
1
|
+
import'./chunk-GGNOJ77I.js';import'./chunk-GV6YH6UO.js';export{a as replaceDepsAliases}from'./chunk-N2BUDGF7.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-IO6HZNAO.js';import'./chunk-7QKHH2VM.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'./chunk-I3CX5PSA.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/pnpm-tools",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.145",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
6
6
|
"repository": {
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"storm-pnpm-esm": "./bin/pnpm.js"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@storm-software/config": "
|
|
77
|
-
"@storm-software/config-tools": "
|
|
78
|
-
"@storm-software/npm-tools": "
|
|
79
|
-
"@storm-software/package-constants": "
|
|
76
|
+
"@storm-software/config": "1.138.67",
|
|
77
|
+
"@storm-software/config-tools": "1.190.131",
|
|
78
|
+
"@storm-software/npm-tools": "0.6.251",
|
|
79
|
+
"@storm-software/package-constants": "0.1.143",
|
|
80
80
|
"chalk": "^4.1.2",
|
|
81
81
|
"commander": "^12.1.0",
|
|
82
82
|
"defu": "^6.1.7",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"tsup": "8.4.0"
|
|
92
92
|
},
|
|
93
93
|
"publishConfig": { "access": "public" },
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "1bb5e5064631770d695317f7f5445e1622e9571a"
|
|
95
95
|
}
|