@storm-software/pnpm-tools 0.7.38 → 0.7.40
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 +20 -0
- package/bin/pnpm.cjs +3 -3
- package/bin/pnpm.js +3 -3
- package/dist/{chunk-VKOULF5W.cjs → chunk-32NPTONF.cjs} +2 -2
- package/dist/{chunk-IS7TKK52.js → chunk-EJTJGABR.js} +1 -1
- package/dist/{chunk-CSGWVGRK.cjs → chunk-GJLDE2U3.cjs} +1 -1
- package/dist/{chunk-EYOWWOIA.js → chunk-KNAKBE3A.js} +1 -1
- package/dist/{chunk-RRVHHW44.cjs → chunk-S3A75EM5.cjs} +2 -2
- package/dist/{chunk-GG6UTTS2.js → chunk-X6Z2J5WF.js} +2 -2
- 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/pnpm-workspace.cjs +1 -1
- package/dist/helpers/pnpm-workspace.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,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.7.40](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.40) (05/25/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **config** to **v1.137.62**
|
|
10
|
+
- Updated **config-tools** to **v1.190.30**
|
|
11
|
+
- Updated **npm-tools** to **v0.6.147**
|
|
12
|
+
- Updated **package-constants** to **v0.1.43**
|
|
13
|
+
- Updated **testing-tools** to **v1.119.183**
|
|
14
|
+
|
|
15
|
+
## [0.7.39](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.39) (05/22/2026)
|
|
16
|
+
|
|
17
|
+
### Updated Dependencies
|
|
18
|
+
|
|
19
|
+
- Updated **config** to **v1.137.61**
|
|
20
|
+
- Updated **config-tools** to **v1.190.29**
|
|
21
|
+
- Updated **npm-tools** to **v0.6.146**
|
|
22
|
+
- Updated **package-constants** to **v0.1.42**
|
|
23
|
+
- Updated **testing-tools** to **v1.119.182**
|
|
24
|
+
|
|
5
25
|
## [0.7.38](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.7.38) (05/22/2026)
|
|
6
26
|
|
|
7
27
|
### Updated Dependencies
|
package/bin/pnpm.cjs
CHANGED
|
@@ -971,13 +971,13 @@ ${message.sort(
|
|
|
971
971
|
{ prefix: `${prefix}--`, skip, sort },
|
|
972
972
|
depth2 + 1
|
|
973
973
|
)}`
|
|
974
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
974
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
975
975
|
${Object.keys(message).filter(
|
|
976
976
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
977
977
|
).sort(
|
|
978
978
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
979
979
|
).map(
|
|
980
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
980
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
981
981
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
982
982
|
).length === 0 ? "{}" : formatLogMessage(
|
|
983
983
|
message[key],
|
|
@@ -2186,7 +2186,7 @@ var import_commander = require("commander");
|
|
|
2186
2186
|
// package.json
|
|
2187
2187
|
var package_default = {
|
|
2188
2188
|
name: "@storm-software/pnpm-tools",
|
|
2189
|
-
version: "0.7.
|
|
2189
|
+
version: "0.7.40",
|
|
2190
2190
|
private: false,
|
|
2191
2191
|
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2192
2192
|
repository: {
|
package/bin/pnpm.js
CHANGED
|
@@ -949,13 +949,13 @@ ${message.sort(
|
|
|
949
949
|
{ prefix: `${prefix}--`, skip, sort },
|
|
950
950
|
depth2 + 1
|
|
951
951
|
)}`
|
|
952
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
952
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
953
953
|
${Object.keys(message).filter(
|
|
954
954
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
955
955
|
).sort(
|
|
956
956
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
957
957
|
).map(
|
|
958
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
958
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
959
959
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
960
960
|
).length === 0 ? "{}" : formatLogMessage(
|
|
961
961
|
message[key],
|
|
@@ -2164,7 +2164,7 @@ import { Command } from "commander";
|
|
|
2164
2164
|
// package.json
|
|
2165
2165
|
var package_default = {
|
|
2166
2166
|
name: "@storm-software/pnpm-tools",
|
|
2167
|
-
version: "0.7.
|
|
2167
|
+
version: "0.7.40",
|
|
2168
2168
|
private: false,
|
|
2169
2169
|
description: "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
2170
2170
|
repository: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
File content: ${JSON.stringify(r,null,2)}`);}async function C(t=
|
|
1
|
+
'use strict';var chunkS3A75EM5_cjs=require('./chunk-S3A75EM5.cjs'),child_process=require('child_process'),semver=require('semver');var x="latest";var l=x;async function _(t="npm"){return new Promise((r,e)=>{child_process.exec(`${t} config get registry`,(o,g,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):r(g.trim()));})}async function y(t,r=l,e={}){let o=e.executable||"npm",g=e.registry||await _(o);return new Promise((s,a)=>{child_process.exec(`${o} view ${t} version --registry=${g} --tag=${r}`,(n,c,i)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?a(n):i&&!i.toLowerCase().trim().startsWith("npm warn")?a(i):s(c.trim()));})}async function G(t=chunkS3A75EM5_cjs.e(process.cwd())){let r=await chunkS3A75EM5_cjs.h(t);if(!r)throw new Error("No pnpm-workspace.yaml file found");if(r?.catalog)return Object.fromEntries(Object.entries(r.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${t}
|
|
2
|
+
File content: ${JSON.stringify(r,null,2)}`);}async function C(t=chunkS3A75EM5_cjs.e(process.cwd())){let r=await G(t);if(!r)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return r}async function M(t,r=chunkS3A75EM5_cjs.e(process.cwd())){let e=await chunkS3A75EM5_cjs.h(r);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(t).map(([o,g])=>[o,g.replaceAll('"',"").replaceAll("'","")])),await chunkS3A75EM5_cjs.i(e,r);}async function Q(t,r,e={}){let{tag:o=l,prefix:g="^",workspaceRoot:s=chunkS3A75EM5_cjs.e()}=e,a=await chunkS3A75EM5_cjs.f(true,{workspaceRoot:s});chunkS3A75EM5_cjs.c(`Upgrading catalog entry for package "${r}" with tag "${o}"`,a);let n=await y(r,o,{executable:"pnpm"}),c=`${g||""}${n.replace(/^[\^~><=*]+/g,"")}`,i=false;return !semver.valid(semver.coerce(t[r]))||semver.coerce(t[r])&&semver.coerce(c)&&semver.gt(semver.coerce(c),semver.coerce(t[r]))?(t[r]=`${g||""}${c.replace(/^[\^~><=*]+/g,"")}`,chunkS3A75EM5_cjs.b(`Writing version ${t[r]} to catalog for "${r}" package`,a),i=true):chunkS3A75EM5_cjs.b(`The current version ${t[r]} for package "${r}" is greater than or equal to the version ${c} fetched from the npm registry with tag "${o}". No update performed.`,a),{catalog:t,updated:i}}async function Z(t,r={}){let{tag:e=l,prefix:o="^",throwIfMissingInCatalog:g=false,workspaceRoot:s=chunkS3A75EM5_cjs.e()}=r,a=await chunkS3A75EM5_cjs.f(true,{workspaceRoot:s}),n=await C(s);if(!n)throw new Error("No catalog found");if(g===true&&!n[t])throw new Error(`Package "${t}" not found in catalog: ${JSON.stringify(n,null,2)}`);chunkS3A75EM5_cjs.c(`Upgrading catalog entry for package "${t}" with tag "${e}"`,a);let c=await y(t,e,{executable:"pnpm"}),i=`${o||""}${c.replace(/^[\^~><=*]+/g,"")}`;i===n[t]?chunkS3A75EM5_cjs.c(`The version for package "${t}" is already up to date in the catalog: ${i}`,a):!semver.valid(semver.coerce(n[t]))||semver.coerce(n[t])&&semver.coerce(i)&&semver.gt(semver.coerce(i),semver.coerce(n[t]))?(n[t]=`${o||""}${i.replace(/^[\^~><=*]+/g,"")}`,chunkS3A75EM5_cjs.b(`Writing version ${n[t]} to catalog for "${t}" package`,a),await M(n,s)):chunkS3A75EM5_cjs.a(`The current version "${n[t]}" for package "${t}" is greater than or equal to the version "${i}" fetched from the npm registry with tag "${e}". No update performed.`,a);}exports.a=G;exports.b=C;exports.c=M;exports.d=Q;exports.e=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-KNAKBE3A.js';import {d,e}from'./chunk-X6Z2J5WF.js';import {readCachedProjectGraph,createProjectGraphAsync}from'@nx/devkit';import {existsSync}from'node:fs';import {readFile,writeFile}from'node:fs/promises';import {format}from'prettier';async function $(c=process.cwd(),i=e(c)){let l=d(c,"package.json"),m=await readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await b(i),a=JSON.parse(m),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(l,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:["prettier-plugin-packagejson"]}))}export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk32NPTONF_cjs=require('./chunk-32NPTONF.cjs'),chunkS3A75EM5_cjs=require('./chunk-S3A75EM5.cjs'),devkit=require('@nx/devkit'),fs=require('fs'),promises=require('fs/promises'),prettier=require('prettier');async function C(c=process.cwd(),i=chunkS3A75EM5_cjs.e(c)){let l=chunkS3A75EM5_cjs.d(c,"package.json"),m=await promises.readFile(l,"utf8");if(!m)throw new Error("No package.json file found in package root: "+c);let p=await chunk32NPTONF_cjs.b(i),a=JSON.parse(m),g=chunkS3A75EM5_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=chunkS3A75EM5_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(l,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:["prettier-plugin-packagejson"]}))}exports.a=C;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h as h$1,e,i,f,c,b,a}from'./chunk-
|
|
1
|
+
import {h as h$1,e,i,f,c,b,a}from'./chunk-X6Z2J5WF.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';var _="latest";var l=_;async function h(t="npm"){return new Promise((r,e)=>{exec(`${t} config get registry`,(o,g,s)=>o&&!o.message.toLowerCase().trim().startsWith("npm warn")?e(o):s&&!s.toLowerCase().trim().startsWith("npm warn")?e(s):r(g.trim()));})}async function R(t,r=l,e={}){let o=e.executable||"npm",g=e.registry||await h(o);return new Promise((s,a)=>{exec(`${o} view ${t} version --registry=${g} --tag=${r}`,(n,c,i)=>n&&!n.message.toLowerCase().trim().startsWith("npm warn")?a(n):i&&!i.toLowerCase().trim().startsWith("npm warn")?a(i):s(c.trim()));})}async function C(t=e(process.cwd())){let r=await h$1(t);if(!r)throw new Error("No pnpm-workspace.yaml file found");if(r?.catalog)return Object.fromEntries(Object.entries(r.catalog).map(([e,o])=>[e,o.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${t}
|
|
2
2
|
File content: ${JSON.stringify(r,null,2)}`);}async function M(t=e(process.cwd())){let r=await C(t);if(!r)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return r}async function I(t,r=e(process.cwd())){let e=await h$1(r);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(t).map(([o,g])=>[o,g.replaceAll('"',"").replaceAll("'","")])),await i(e,r);}async function Z(t,r,e$1={}){let{tag:o=l,prefix:g="^",workspaceRoot:s=e()}=e$1,a=await f(true,{workspaceRoot:s});c(`Upgrading catalog entry for package "${r}" with tag "${o}"`,a);let n=await R(r,o,{executable:"pnpm"}),c$1=`${g||""}${n.replace(/^[\^~><=*]+/g,"")}`,i=false;return !valid(coerce(t[r]))||coerce(t[r])&&coerce(c$1)&>(coerce(c$1),coerce(t[r]))?(t[r]=`${g||""}${c$1.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${t[r]} to catalog for "${r}" package`,a),i=true):b(`The current version ${t[r]} for package "${r}" is greater than or equal to the version ${c$1} fetched from the npm registry with tag "${o}". No update performed.`,a),{catalog:t,updated:i}}async function tt(t,r={}){let{tag:e$1=l,prefix:o="^",throwIfMissingInCatalog:g=false,workspaceRoot:s=e()}=r,a$1=await f(true,{workspaceRoot:s}),n=await M(s);if(!n)throw new Error("No catalog found");if(g===true&&!n[t])throw new Error(`Package "${t}" not found in catalog: ${JSON.stringify(n,null,2)}`);c(`Upgrading catalog entry for package "${t}" with tag "${e$1}"`,a$1);let c$1=await R(t,e$1,{executable:"pnpm"}),i=`${o||""}${c$1.replace(/^[\^~><=*]+/g,"")}`;i===n[t]?c(`The version for package "${t}" is already up to date in the catalog: ${i}`,a$1):!valid(coerce(n[t]))||coerce(n[t])&&coerce(i)&>(coerce(i),coerce(n[t]))?(n[t]=`${o||""}${i.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${n[t]} to catalog for "${t}" package`,a$1),await I(n,s)):a(`The current version "${n[t]}" for package "${t}" is greater than or equal to the version "${i}" fetched from the npm registry with tag "${e$1}". No update performed.`,a$1);}export{C as a,M as b,I as c,Z as d,tt as e};
|
|
@@ -18,8 +18,8 @@ ${i?"":`${s.gray(v(a))} `}${s.hex("#bbbbbb")(`[${S[d.TRACE]} Trace] `)}${s.bold.
|
|
|
18
18
|
${i?"":`${s.gray(v(a))} `}${s.hex(c.brand??R.dark.brand)(`[${S[d.ALL]} System] `)}${s.bold.whiteBright(C(u))}
|
|
19
19
|
`);}};var ne=(e,o)=>J(l.WARN,o)(e);var Vr=(e,o)=>J(l.DEBUG,o)(e),O=(e,o)=>J(l.TRACE,o)(e);var Mo=10,C=(e,o={},t=0)=>{if(t>Mo)return "<max depth>";let s=o.prefix??"",a=o.skip??[],i=o.sort??true;return typeof e>"u"||e===null?"<empty>":typeof e=="string"?e||"<empty string>":Array.isArray(e)?`
|
|
20
20
|
${e.sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map((c,p)=>` ${s}> #${p} = ${C(c,{prefix:`${s}--`,skip:a,sort:i},t+1)}`).join(`
|
|
21
|
-
`)}`:typeof e=="object"?`
|
|
22
|
-
${Object.keys(e).filter(c=>typeof c!="string"||!a.map(p=>p.toLowerCase().trim()).includes(c.toLowerCase().trim())).sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map(c=>` ${s}> ${c} = ${Wo(e[c])?"<function>":typeof e[c]=="object"?Object.keys(e[c]).filter(p=>typeof p!="string"||!a.map(u=>u.toLowerCase().trim()).includes(p.toLowerCase().trim())).length===0?"{}":C(e[c],{prefix:`${s}--`,skip:a,sort:i},t+1):e[c]}`).join(`
|
|
21
|
+
`)}`:typeof e=="object"&&e?`
|
|
22
|
+
${Object.keys(e).filter(c=>typeof c!="string"||!a.map(p=>p.toLowerCase().trim()).includes(c.toLowerCase().trim())).sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map(c=>` ${s}> ${c} = ${Wo(e[c])?"<function>":typeof e[c]=="object"&&e[c]?Object.keys(e[c]).filter(p=>typeof p!="string"||!a.map(u=>u.toLowerCase().trim()).includes(p.toLowerCase().trim())).length===0?"{}":C(e[c],{prefix:`${s}--`,skip:a,sort:i},t+1):e[c]}`).join(`
|
|
23
23
|
`)}`:String(e)},Wo=e=>{try{return e instanceof Function||typeof e=="function"||!!(e?.constructor&&e?.call&&e?.apply)}catch{return false}};var Uo=/^[A-Za-z]:\//;function jo(e=""){return e&&e.replace(/\\/g,"/").replace(Uo,o=>o.toUpperCase())}var Bo=/^[/\\]{2}/,Ho=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Ko=/^[A-Za-z]:$/;var m=function(e){if(!e||e.length===0)return ".";e=jo(e);let o=e?.match(Bo),t=ae(e),s=e[e.length-1]==="/";return e=Zo(e,!t),e.length===0?t?"/":s?"./":".":(s&&(e+="/"),Ko.test(e)&&(e+="/"),o?t?`//${e}`:`//./${e}`:t&&!ae(e)?`/${e}`:e)},E=function(...e){let o="";for(let t of e)if(t)if(o.length>0){let s=o[o.length-1]==="/",a=t[0]==="/";s&&a?o+=t.slice(1):o+=s||a?t:`/${t}`;}else o+=t;return m(o)};function Zo(e,o){let t="",s=0,a=-1,i=0,c=null;for(let p=0;p<=e.length;++p){if(p<e.length)c=e[p];else {if(c==="/")break;c="/";}if(c==="/"){if(!(a===p-1||i===1))if(i===2){if(t.length<2||s!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let u=t.lastIndexOf("/");u===-1?(t="",s=0):(t=t.slice(0,u),s=t.length-1-t.lastIndexOf("/")),a=p,i=0;continue}else if(t.length>0){t="",s=0,a=p,i=0;continue}}o&&(t+=t.length>0?"/..":"..",s=2);}else t.length>0?t+=`/${e.slice(a+1,p)}`:t=e.slice(a+1,p),s=p-a-1;a=p,i=0;}else c==="."&&i!==-1?++i:i=-1;}return t}var ae=function(e){return Ho.test(e)};var Yo=30,Vo=0;function q(e,o=[],t=[]){let s=e??process.cwd();if(t.some(a=>fs.existsSync(path.join(s,a)))||o.some(a=>fs.existsSync(path.join(s,a))))return s;if(s!=="/"&&Vo++<Yo){let a=path.join(s,"..");return q(a,o,t)}}var ce=["storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],Jo=[".storm-workspace",".nx",".git",".github",".vscode",".verdaccio"];function Xo(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?m(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):m(q(e??process.cwd(),ce,Jo))}function T(e){let o=Xo(e);if(!o)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
24
24
|
${ce.join(`
|
|
25
25
|
`)}
|
|
@@ -18,8 +18,8 @@ ${i?"":`${s.gray(k(a))} `}${s.hex("#bbbbbb")(`[${v[d.TRACE]} Trace] `)}${s.bold.
|
|
|
18
18
|
${i?"":`${s.gray(k(a))} `}${s.hex(c.brand??S.dark.brand)(`[${v[d.ALL]} System] `)}${s.bold.whiteBright(T(u))}
|
|
19
19
|
`);}};var ae=(e,o)=>X(l.WARN,o)(e);var Jr=(e,o)=>X(l.DEBUG,o)(e),A=(e,o)=>X(l.TRACE,o)(e);var Wo=10,T=(e,o={},t=0)=>{if(t>Wo)return "<max depth>";let s=o.prefix??"",a=o.skip??[],i=o.sort??true;return typeof e>"u"||e===null?"<empty>":typeof e=="string"?e||"<empty string>":Array.isArray(e)?`
|
|
20
20
|
${e.sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map((c,p)=>` ${s}> #${p} = ${T(c,{prefix:`${s}--`,skip:a,sort:i},t+1)}`).join(`
|
|
21
|
-
`)}`:typeof e=="object"?`
|
|
22
|
-
${Object.keys(e).filter(c=>typeof c!="string"||!a.map(p=>p.toLowerCase().trim()).includes(c.toLowerCase().trim())).sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map(c=>` ${s}> ${c} = ${Uo(e[c])?"<function>":typeof e[c]=="object"?Object.keys(e[c]).filter(p=>typeof p!="string"||!a.map(u=>u.toLowerCase().trim()).includes(p.toLowerCase().trim())).length===0?"{}":T(e[c],{prefix:`${s}--`,skip:a,sort:i},t+1):e[c]}`).join(`
|
|
21
|
+
`)}`:typeof e=="object"&&e?`
|
|
22
|
+
${Object.keys(e).filter(c=>typeof c!="string"||!a.map(p=>p.toLowerCase().trim()).includes(c.toLowerCase().trim())).sort(i?(c,p)=>!c&&!p?0:c?p?String(c).localeCompare(String(p)):-1:1:void 0).map(c=>` ${s}> ${c} = ${Uo(e[c])?"<function>":typeof e[c]=="object"&&e[c]?Object.keys(e[c]).filter(p=>typeof p!="string"||!a.map(u=>u.toLowerCase().trim()).includes(p.toLowerCase().trim())).length===0?"{}":T(e[c],{prefix:`${s}--`,skip:a,sort:i},t+1):e[c]}`).join(`
|
|
23
23
|
`)}`:String(e)},Uo=e=>{try{return e instanceof Function||typeof e=="function"||!!(e?.constructor&&e?.call&&e?.apply)}catch{return false}};var jo=/^[A-Za-z]:\//;function Bo(e=""){return e&&e.replace(/\\/g,"/").replace(jo,o=>o.toUpperCase())}var Ho=/^[/\\]{2}/,Ko=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Zo=/^[A-Za-z]:$/;var m=function(e){if(!e||e.length===0)return ".";e=Bo(e);let o=e?.match(Ho),t=ie(e),s=e[e.length-1]==="/";return e=Yo(e,!t),e.length===0?t?"/":s?"./":".":(s&&(e+="/"),Zo.test(e)&&(e+="/"),o?t?`//${e}`:`//./${e}`:t&&!ie(e)?`/${e}`:e)},R=function(...e){let o="";for(let t of e)if(t)if(o.length>0){let s=o[o.length-1]==="/",a=t[0]==="/";s&&a?o+=t.slice(1):o+=s||a?t:`/${t}`;}else o+=t;return m(o)};function Yo(e,o){let t="",s=0,a=-1,i=0,c=null;for(let p=0;p<=e.length;++p){if(p<e.length)c=e[p];else {if(c==="/")break;c="/";}if(c==="/"){if(!(a===p-1||i===1))if(i===2){if(t.length<2||s!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){let u=t.lastIndexOf("/");u===-1?(t="",s=0):(t=t.slice(0,u),s=t.length-1-t.lastIndexOf("/")),a=p,i=0;continue}else if(t.length>0){t="",s=0,a=p,i=0;continue}}o&&(t+=t.length>0?"/..":"..",s=2);}else t.length>0?t+=`/${e.slice(a+1,p)}`:t=e.slice(a+1,p),s=p-a-1;a=p,i=0;}else c==="."&&i!==-1?++i:i=-1;}return t}var ie=function(e){return Ko.test(e)};var Vo=30,Jo=0;function Q(e,o=[],t=[]){let s=e??process.cwd();if(t.some(a=>existsSync(join(s,a)))||o.some(a=>existsSync(join(s,a))))return s;if(s!=="/"&&Jo++<Vo){let a=join(s,"..");return Q(a,o,t)}}var pe=["storm-workspace.json","storm-workspace.yaml","storm-workspace.yml","storm-workspace.js","storm-workspace.ts",".storm-workspace.json",".storm-workspace.yaml",".storm-workspace.yml",".storm-workspace.js",".storm-workspace.ts","lerna.json","nx.json","turbo.json","npm-workspace.json","yarn-workspace.json","pnpm-workspace.json","npm-workspace.yaml","yarn-workspace.yaml","pnpm-workspace.yaml","npm-workspace.yml","yarn-workspace.yml","pnpm-workspace.yml","npm-lock.json","yarn-lock.json","pnpm-lock.json","npm-lock.yaml","yarn-lock.yaml","pnpm-lock.yaml","npm-lock.yml","yarn-lock.yml","pnpm-lock.yml","bun.lockb"],Xo=[".storm-workspace",".nx",".git",".github",".vscode",".verdaccio"];function qo(e){return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH?m(process.env.STORM_WORKSPACE_ROOT??process.env.NX_WORKSPACE_ROOT_PATH):m(Q(e??process.cwd(),pe,Xo))}function E(e){let o=qo(e);if(!o)throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
24
24
|
${pe.join(`
|
|
25
25
|
`)}
|
package/dist/helpers/catalog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk32NPTONF_cjs=require('../chunk-32NPTONF.cjs');require('../chunk-S3A75EM5.cjs');Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk32NPTONF_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk32NPTONF_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-KNAKBE3A.js';import'../chunk-X6Z2J5WF.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 chunkGJLDE2U3_cjs=require('../chunk-GJLDE2U3.cjs'),chunk32NPTONF_cjs=require('../chunk-32NPTONF.cjs'),chunkS3A75EM5_cjs=require('../chunk-S3A75EM5.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkGJLDE2U3_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk32NPTONF_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_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-EJTJGABR.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-KNAKBE3A.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-X6Z2J5WF.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkS3A75EM5_cjs=require('../chunk-S3A75EM5.cjs');Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.i}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-
|
|
1
|
+
export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-X6Z2J5WF.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkGJLDE2U3_cjs=require('../chunk-GJLDE2U3.cjs');require('../chunk-32NPTONF.cjs'),require('../chunk-S3A75EM5.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkGJLDE2U3_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as replaceDepsAliases}from'../chunk-
|
|
1
|
+
export{a as replaceDepsAliases}from'../chunk-EJTJGABR.js';import'../chunk-KNAKBE3A.js';import'../chunk-X6Z2J5WF.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 chunkGJLDE2U3_cjs=require('./chunk-GJLDE2U3.cjs'),chunk32NPTONF_cjs=require('./chunk-32NPTONF.cjs'),chunkS3A75EM5_cjs=require('./chunk-S3A75EM5.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunkGJLDE2U3_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunk32NPTONF_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunk32NPTONF_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkS3A75EM5_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-EJTJGABR.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-KNAKBE3A.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'./chunk-X6Z2J5WF.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.40",
|
|
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": "^1.137.
|
|
77
|
-
"@storm-software/config-tools": "^1.190.
|
|
78
|
-
"@storm-software/npm-tools": "^0.6.
|
|
79
|
-
"@storm-software/package-constants": "^0.1.
|
|
76
|
+
"@storm-software/config": "^1.137.62",
|
|
77
|
+
"@storm-software/config-tools": "^1.190.30",
|
|
78
|
+
"@storm-software/npm-tools": "^0.6.147",
|
|
79
|
+
"@storm-software/package-constants": "^0.1.43",
|
|
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": "9e0891595dca1742a6d48e6833c648e8ad79327c"
|
|
95
95
|
}
|