@storm-software/pnpm-tools 0.5.8 → 0.5.9
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 +15 -0
- package/dist/{chunk-NR4Q3RAB.cjs → chunk-5NYL2KOW.cjs} +1 -1
- package/dist/{chunk-EWC64ZZT.js → chunk-6CXOYW4T.js} +1 -1
- package/dist/{chunk-XDFF7DBD.cjs → chunk-O7TVF3LT.cjs} +1 -1
- package/dist/{chunk-QHK5XUKM.cjs → chunk-T2RMQLUQ.cjs} +2 -2
- package/dist/{chunk-JGJEVC4U.js → chunk-VV2B22QE.js} +1 -1
- package/dist/{chunk-FCOQR6F7.js → chunk-Y2VCXZHU.js} +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/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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pnpm Tools
|
|
4
4
|
|
|
5
|
+
## [0.5.8](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.5.8) (2025-10-03)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update devenv flake versions
|
|
10
|
+
([86e23e033](https://github.com/storm-software/storm-ops/commit/86e23e033))
|
|
11
|
+
- **monorepo:** Update workspace to TypeScript v5.9.3
|
|
12
|
+
([3db5c952c](https://github.com/storm-software/storm-ops/commit/3db5c952c))
|
|
13
|
+
|
|
14
|
+
### Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated config-tools to 1.187.10
|
|
17
|
+
- Updated npm-tools to 0.4.15
|
|
18
|
+
- Updated config to 1.133.5
|
|
19
|
+
|
|
5
20
|
## [0.5.7](https://github.com/storm-software/storm-ops/releases/tag/pnpm-tools%400.5.7) (2025-09-22)
|
|
6
21
|
|
|
7
22
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkT2RMQLUQ_cjs=require('./chunk-T2RMQLUQ.cjs'),chunkO7TVF3LT_cjs=require('./chunk-O7TVF3LT.cjs'),devkit=require('@nx/devkit'),fs=require('fs'),promises=require('fs/promises'),prettier=require('prettier');async function C(c=process.cwd(),i=chunkO7TVF3LT_cjs.e(c)){let l=chunkO7TVF3LT_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 chunkT2RMQLUQ_cjs.b(i),r=JSON.parse(m),g=chunkO7TVF3LT_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.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];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 a=>{let o=n.nodes[a];if(o?.data.root){let e=chunkO7TVF3LT_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 a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];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(r),{parser:"json",proseWrap:"always",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-pkg"]}))}exports.a=C;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {e,h as h$1,i,f,c,b,a}from'./chunk-
|
|
1
|
+
import {e,h as h$1,i,f,c,b,a}from'./chunk-VV2B22QE.js';import {exec}from'node:child_process';import {valid,coerce,gt}from'semver';var E="latest";var u=E;async function h(){return new Promise((r,t)=>{exec("npm config get registry",(e,n,s)=>e?t(e):s?t(s):r(n.trim()));})}async function $(r,t=u,e={}){let{registry:n=await h()}=e;return new Promise((s,p)=>{exec(`npm view ${r} version --registry=${n} --tag=${t}`,(i,o,g)=>i?p(i):g?p(g):s(o.trim()));})}async function M(r=e(process.cwd())){let t=await h$1(r);if(!t)throw new Error("No pnpm-workspace.yaml file found");if(t?.catalog)return Object.fromEntries(Object.entries(t.catalog).map(([e,n])=>[e,n.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
|
|
2
2
|
File content: ${JSON.stringify(t,null,2)}`);}async function C(r=e(process.cwd())){let t=await M(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function v(r,t=e(process.cwd())){let e=await h$1(t);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(r).map(([n,s])=>[n,s.replaceAll('"',"").replaceAll("'","")])),await i(e,t);}async function Z(r,t,e$1={}){let{tag:n=u,prefix:s="^",workspaceRoot:p=e()}=e$1,i=await f(true,{workspaceRoot:p});c(`Upgrading catalog entry for package "${t}" with tag "${n}"`,i);let o=await $(t,n),g=`${s||""}${o.replace(/^[\^~><=*]+/g,"")}`;return g===r[t]?c(`The version for package "${t}" is already up to date in the catalog: ${g}`,i):!valid(coerce(r[t]))||coerce(r[t])&&coerce(g)&>(coerce(g),coerce(r[t]))?(r[t]=`${s||""}${g.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${r[t]} to catalog for "${t}" package`,i)):a(`The current version "${r[t]}" for package "${t}" is greater than or equal to the version "${g}" fetched from the npm registry with tag "${n}". No update performed.`,i),r}async function rr(r,t={}){let{tag:e$1=u,prefix:n="^",throwIfMissingInCatalog:s=false,workspaceRoot:p=e()}=t,i=await f(true,{workspaceRoot:p}),o=await C(p);if(!o)throw new Error("No catalog found");if(s===true&&!o[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(o,null,2)}`);c(`Upgrading catalog entry for package "${r}" with tag "${e$1}"`,i);let g=await $(r,e$1),c$1=`${n||""}${g.replace(/^[\^~><=*]+/g,"")}`;c$1===o[r]?c(`The version for package "${r}" is already up to date in the catalog: ${c$1}`,i):!valid(coerce(o[r]))||coerce(o[r])&&coerce(c$1)&>(coerce(c$1),coerce(o[r]))?(o[r]=`${n||""}${c$1.replace(/^[\^~><=*]+/g,"")}`,b(`Writing version ${o[r]} to catalog for "${r}" package`,i),await v(o,p)):a(`The current version "${o[r]}" for package "${r}" is greater than or equal to the version "${c$1}" fetched from the npm registry with tag "${e$1}". No update performed.`,i);}export{M as a,C as b,v as c,Z as d,rr as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var c12=require('c12'),Oo=require('defu'),Do=require('chalk'),fs$1=require('fs'),path=require('path'),r=require('zod
|
|
1
|
+
'use strict';var c12=require('c12'),Oo=require('defu'),Do=require('chalk'),fs$1=require('fs'),path=require('path'),r=require('zod'),promises=require('fs/promises'),yaml=require('yaml');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Oo__default=/*#__PURE__*/_interopDefault(Oo);var Do__default=/*#__PURE__*/_interopDefault(Do);var r__namespace=/*#__PURE__*/_interopNamespace(r);var c={SILENT:0,FATAL:10,ERROR:20,WARN:30,SUCCESS:35,INFO:40,DEBUG:60,TRACE:70,ALL:100},l={SILENT:"silent",FATAL:"fatal",ERROR:"error",WARN:"warn",SUCCESS:"success",INFO:"info",DEBUG:"debug",TRACE:"trace",ALL:"all"};var E={dark:{brand:"#2dd4bf",success:"#10b981",info:"#58a6ff",warning:"#f3d371",danger:"#D8314A",fatal:"#a40e26"}};var Go={hex:e=>o=>o,bgHex:e=>({whiteBright:o=>o,white:o=>o}),white:e=>e,whiteBright:e=>e,gray:e=>e,bold:{hex:e=>o=>o,bgHex:e=>({whiteBright:o=>o,white:o=>o}),whiteBright:e=>e,white:e=>e},dim:{hex:e=>o=>o,gray:e=>e}},ee=()=>{let e=Do__default.default;return (!e?.hex||!e?.bold?.hex||!e?.bgHex||!e?.whiteBright||!e?.white)&&(e=Go),e};function oe(){return process.platform!=="win32"?process.env.TERM!=="linux":!!process.env.WT_SESSION||!!process.env.TERMINUS_SUBLIME||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="Terminus-Sublime"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"||process.env.TERM==="rxvt-unicode"||process.env.TERM==="rxvt-unicode-256color"||process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var k=(e,o)=>oe()?e:o,R={[l.ERROR]:k("\u2718","\xD7"),[l.FATAL]:k("\u{1F480}","\xD7"),[l.WARN]:k("\u26A0","\u203C"),[l.INFO]:k("\u2139","i"),[l.SUCCESS]:k("\u2714","\u221A"),[l.DEBUG]:k("\u{1F6E0}","D"),[l.TRACE]:k("\u{1F6E0}","T"),[l.ALL]:k("\u2709","\u2192")};var S=(e=new Date)=>`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`;var A=e=>{switch(e){case "all":return c.ALL;case "trace":return c.TRACE;case "debug":return c.DEBUG;case "info":return c.INFO;case "warn":return c.WARN;case "error":return c.ERROR;case "fatal":return c.FATAL;case "silent":return c.SILENT;default:return c.INFO}},re=(e=c.INFO)=>e>=c.ALL?l.ALL:e>=c.TRACE?l.TRACE:e>=c.DEBUG?l.DEBUG:e>=c.INFO?l.INFO:e>=c.WARN?l.WARN:e>=c.ERROR?l.ERROR:e>=c.FATAL?l.FATAL:e<=c.SILENT?l.SILENT:l.INFO;var Y=(e=c.INFO,o={},t=ee())=>{let a=!o.colors?.dark&&!o.colors?.base&&!o.colors?.base?.dark?E:o.colors?.dark&&typeof o.colors.dark=="string"?o.colors:o.colors?.base?.dark&&typeof o.colors.base.dark=="string"?o.colors.base.dark:o.colors?.base?o.colors?.base:E,i=o.logLevel||process.env.STORM_LOG_LEVEL||l.INFO;return e>A(i)||e<=c.SILENT||A(i)<=c.SILENT?n=>{}:typeof e=="number"&&c.FATAL>=e?n=>{console.error(`
|
|
2
2
|
${t.gray(S())} ${t.hex(a.fatal??E.dark.fatal)(`[${R[l.FATAL]} Fatal] `)}${t.bold.whiteBright(h(n))}
|
|
3
3
|
`);}:typeof e=="number"&&c.ERROR>=e?n=>{console.error(`
|
|
4
4
|
${t.gray(S())} ${t.hex(a.danger??E.dark.danger)(`[${R[l.ERROR]} Error] `)}${t.bold.whiteBright(h(n))}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
File content: ${JSON.stringify(t,null,2)}`);}async function M(r=
|
|
1
|
+
'use strict';var chunkO7TVF3LT_cjs=require('./chunk-O7TVF3LT.cjs'),child_process=require('child_process'),semver=require('semver');var _="latest";var u=_;async function E(){return new Promise((r,t)=>{child_process.exec("npm config get registry",(e,n,s)=>e?t(e):s?t(s):r(n.trim()));})}async function R(r,t=u,e={}){let{registry:n=await E()}=e;return new Promise((s,p)=>{child_process.exec(`npm view ${r} version --registry=${n} --tag=${t}`,(i,o,g)=>i?p(i):g?p(g):s(o.trim()));})}async function G(r=chunkO7TVF3LT_cjs.e(process.cwd())){let t=await chunkO7TVF3LT_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(([e,n])=>[e,n.replaceAll('"',"").replaceAll("'","")]));console.warn(`No catalog found in pnpm-workspace.yaml file located in workspace root: ${r}
|
|
2
|
+
File content: ${JSON.stringify(t,null,2)}`);}async function M(r=chunkO7TVF3LT_cjs.e(process.cwd())){let t=await G(r);if(!t)throw new Error("No catalog entries found in pnpm-workspace.yaml file");return t}async function C(r,t=chunkO7TVF3LT_cjs.e(process.cwd())){let e=await chunkO7TVF3LT_cjs.h(t);if(!e)throw new Error("No pnpm-workspace.yaml file found");e.catalog=Object.fromEntries(Object.entries(r).map(([n,s])=>[n,s.replaceAll('"',"").replaceAll("'","")])),await chunkO7TVF3LT_cjs.i(e,t);}async function Q(r,t,e={}){let{tag:n=u,prefix:s="^",workspaceRoot:p=chunkO7TVF3LT_cjs.e()}=e,i=await chunkO7TVF3LT_cjs.f(true,{workspaceRoot:p});chunkO7TVF3LT_cjs.c(`Upgrading catalog entry for package "${t}" with tag "${n}"`,i);let o=await R(t,n),g=`${s||""}${o.replace(/^[\^~><=*]+/g,"")}`;return g===r[t]?chunkO7TVF3LT_cjs.c(`The version for package "${t}" is already up to date in the catalog: ${g}`,i):!semver.valid(semver.coerce(r[t]))||semver.coerce(r[t])&&semver.coerce(g)&&semver.gt(semver.coerce(g),semver.coerce(r[t]))?(r[t]=`${s||""}${g.replace(/^[\^~><=*]+/g,"")}`,chunkO7TVF3LT_cjs.b(`Writing version ${r[t]} to catalog for "${t}" package`,i)):chunkO7TVF3LT_cjs.a(`The current version "${r[t]}" for package "${t}" is greater than or equal to the version "${g}" fetched from the npm registry with tag "${n}". No update performed.`,i),r}async function Z(r,t={}){let{tag:e=u,prefix:n="^",throwIfMissingInCatalog:s=false,workspaceRoot:p=chunkO7TVF3LT_cjs.e()}=t,i=await chunkO7TVF3LT_cjs.f(true,{workspaceRoot:p}),o=await M(p);if(!o)throw new Error("No catalog found");if(s===true&&!o[r])throw new Error(`Package "${r}" not found in catalog: ${JSON.stringify(o,null,2)}`);chunkO7TVF3LT_cjs.c(`Upgrading catalog entry for package "${r}" with tag "${e}"`,i);let g=await R(r,e),c=`${n||""}${g.replace(/^[\^~><=*]+/g,"")}`;c===o[r]?chunkO7TVF3LT_cjs.c(`The version for package "${r}" is already up to date in the catalog: ${c}`,i):!semver.valid(semver.coerce(o[r]))||semver.coerce(o[r])&&semver.coerce(c)&&semver.gt(semver.coerce(c),semver.coerce(o[r]))?(o[r]=`${n||""}${c.replace(/^[\^~><=*]+/g,"")}`,chunkO7TVF3LT_cjs.b(`Writing version ${o[r]} to catalog for "${r}" package`,i),await C(o,p)):chunkO7TVF3LT_cjs.a(`The current version "${o[r]}" for package "${r}" is greater than or equal to the version "${c}" fetched from the npm registry with tag "${e}". No update performed.`,i);}exports.a=G;exports.b=M;exports.c=C;exports.d=Q;exports.e=Z;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {loadConfig}from'c12';import Ao from'defu';import Go from'chalk';import {existsSync}from'node:fs';import {join}from'node:path';import*as r from'zod
|
|
1
|
+
import {loadConfig}from'c12';import Ao from'defu';import Go from'chalk';import {existsSync}from'node:fs';import {join}from'node:path';import*as r from'zod';import {readFile,writeFile}from'node:fs/promises';import {parse,stringify}from'yaml';var c={SILENT:0,FATAL:10,ERROR:20,WARN:30,SUCCESS:35,INFO:40,DEBUG:60,TRACE:70,ALL:100},l={SILENT:"silent",FATAL:"fatal",ERROR:"error",WARN:"warn",SUCCESS:"success",INFO:"info",DEBUG:"debug",TRACE:"trace",ALL:"all"};var R={dark:{brand:"#2dd4bf",success:"#10b981",info:"#58a6ff",warning:"#f3d371",danger:"#D8314A",fatal:"#a40e26"}};var Po={hex:e=>o=>o,bgHex:e=>({whiteBright:o=>o,white:o=>o}),white:e=>e,whiteBright:e=>e,gray:e=>e,bold:{hex:e=>o=>o,bgHex:e=>({whiteBright:o=>o,white:o=>o}),whiteBright:e=>e,white:e=>e},dim:{hex:e=>o=>o,gray:e=>e}},oe=()=>{let e=Go;return (!e?.hex||!e?.bold?.hex||!e?.bgHex||!e?.whiteBright||!e?.white)&&(e=Po),e};function re(){return process.platform!=="win32"?process.env.TERM!=="linux":!!process.env.WT_SESSION||!!process.env.TERMINUS_SUBLIME||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="Terminus-Sublime"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"||process.env.TERM==="rxvt-unicode"||process.env.TERM==="rxvt-unicode-256color"||process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var O=(e,o)=>re()?e:o,S={[l.ERROR]:O("\u2718","\xD7"),[l.FATAL]:O("\u{1F480}","\xD7"),[l.WARN]:O("\u26A0","\u203C"),[l.INFO]:O("\u2139","i"),[l.SUCCESS]:O("\u2714","\u221A"),[l.DEBUG]:O("\u{1F6E0}","D"),[l.TRACE]:O("\u{1F6E0}","T"),[l.ALL]:O("\u2709","\u2192")};var v=(e=new Date)=>`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`;var L=e=>{switch(e){case "all":return c.ALL;case "trace":return c.TRACE;case "debug":return c.DEBUG;case "info":return c.INFO;case "warn":return c.WARN;case "error":return c.ERROR;case "fatal":return c.FATAL;case "silent":return c.SILENT;default:return c.INFO}},te=(e=c.INFO)=>e>=c.ALL?l.ALL:e>=c.TRACE?l.TRACE:e>=c.DEBUG?l.DEBUG:e>=c.INFO?l.INFO:e>=c.WARN?l.WARN:e>=c.ERROR?l.ERROR:e>=c.FATAL?l.FATAL:e<=c.SILENT?l.SILENT:l.INFO;var V=(e=c.INFO,o={},t=oe())=>{let a=!o.colors?.dark&&!o.colors?.base&&!o.colors?.base?.dark?R:o.colors?.dark&&typeof o.colors.dark=="string"?o.colors:o.colors?.base?.dark&&typeof o.colors.base.dark=="string"?o.colors.base.dark:o.colors?.base?o.colors?.base:R,i=o.logLevel||process.env.STORM_LOG_LEVEL||l.INFO;return e>L(i)||e<=c.SILENT||L(i)<=c.SILENT?n=>{}:typeof e=="number"&&c.FATAL>=e?n=>{console.error(`
|
|
2
2
|
${t.gray(v())} ${t.hex(a.fatal??R.dark.fatal)(`[${S[l.FATAL]} Fatal] `)}${t.bold.whiteBright(T(n))}
|
|
3
3
|
`);}:typeof e=="number"&&c.ERROR>=e?n=>{console.error(`
|
|
4
4
|
${t.gray(v())} ${t.hex(a.danger??R.dark.danger)(`[${S[l.ERROR]} Error] `)}${t.bold.whiteBright(T(n))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-6CXOYW4T.js';import {e,d}from'./chunk-VV2B22QE.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),r=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.`),r;if(!p){console.warn("No pnpm catalog found. Skipping dependencies replacement for now.");return}for(let a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];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 a=>{let o=n.nodes[a];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 a of ["dependencies","devDependencies","peerDependencies"]){let o=r[a];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(r),{parser:"json",proseWrap:"always",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-pkg"]}))}export{$ as a};
|
package/dist/helpers/catalog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkT2RMQLUQ_cjs=require('../chunk-T2RMQLUQ.cjs');require('../chunk-O7TVF3LT.cjs');Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_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-6CXOYW4T.js';import'../chunk-VV2B22QE.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 chunk5NYL2KOW_cjs=require('../chunk-5NYL2KOW.cjs'),chunkT2RMQLUQ_cjs=require('../chunk-T2RMQLUQ.cjs'),chunkO7TVF3LT_cjs=require('../chunk-O7TVF3LT.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk5NYL2KOW_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_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-Y2VCXZHU.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-6CXOYW4T.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'../chunk-VV2B22QE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkO7TVF3LT_cjs=require('../chunk-O7TVF3LT.cjs');Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_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-VV2B22QE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk5NYL2KOW_cjs=require('../chunk-5NYL2KOW.cjs');require('../chunk-T2RMQLUQ.cjs'),require('../chunk-O7TVF3LT.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk5NYL2KOW_cjs.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as replaceDepsAliases}from'../chunk-
|
|
1
|
+
export{a as replaceDepsAliases}from'../chunk-Y2VCXZHU.js';import'../chunk-6CXOYW4T.js';import'../chunk-VV2B22QE.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 chunk5NYL2KOW_cjs=require('./chunk-5NYL2KOW.cjs'),chunkT2RMQLUQ_cjs=require('./chunk-T2RMQLUQ.cjs'),chunkO7TVF3LT_cjs=require('./chunk-O7TVF3LT.cjs');Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk5NYL2KOW_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkT2RMQLUQ_cjs.d}});Object.defineProperty(exports,"getPnpmWorkspaceFilePath",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.g}});Object.defineProperty(exports,"readPnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_cjs.h}});Object.defineProperty(exports,"writePnpmWorkspaceFile",{enumerable:true,get:function(){return chunkO7TVF3LT_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-Y2VCXZHU.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-6CXOYW4T.js';export{g as getPnpmWorkspaceFilePath,h as readPnpmWorkspaceFile,i as writePnpmWorkspaceFile}from'./chunk-VV2B22QE.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/pnpm-tools",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of [pnpm](https://pnpm.io/) plugins and utilities for managing workspace packages/dependencies.",
|
|
6
6
|
"repository": {
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@pnpm/plugin-better-defaults": "^0.2.1",
|
|
91
91
|
"@pnpm/plugin-esm-node-path": "^0.1.2",
|
|
92
|
-
"@storm-software/config": "^1.133.
|
|
93
|
-
"@storm-software/config-tools": "^1.187.
|
|
94
|
-
"@storm-software/npm-tools": "^0.4.
|
|
92
|
+
"@storm-software/config": "^1.133.6",
|
|
93
|
+
"@storm-software/config-tools": "^1.187.11",
|
|
94
|
+
"@storm-software/npm-tools": "^0.4.16",
|
|
95
95
|
"commander": "^12.1.0",
|
|
96
96
|
"defu": "6.1.4",
|
|
97
97
|
"prettier": "^3.5.1",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"tsup": "8.4.0"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": { "access": "public" },
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "98ec25abe75a19e5d92b532a339ac62cda9bc92d"
|
|
109
109
|
}
|