@storm-software/bun-tools 0.0.68 → 0.0.70

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 CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  # Changelog for Storm Ops - Bun Tools
4
4
 
5
+ ## [0.0.69](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.69) (11/03/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **config** to **v1.138.92**
10
+ - Updated **config-tools** to **v1.190.156**
11
+ - Updated **npm-tools** to **v0.6.276**
12
+ - Updated **package-constants** to **v0.1.168**
13
+ - Updated **testing-tools** to **v1.119.308**
14
+
15
+ ## [0.0.68](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.68) (10/29/2026)
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated **config** to **v1.138.91**
20
+ - Updated **config-tools** to **v1.190.155**
21
+ - Updated **npm-tools** to **v0.6.275**
22
+ - Updated **package-constants** to **v0.1.167**
23
+ - Updated **testing-tools** to **v1.119.307**
24
+
5
25
  ## [0.0.67](https://github.com/storm-software/storm-ops/releases/tag/bun-tools%400.0.67) (10/23/2026)
6
26
 
7
27
  ### Updated Dependencies
package/bin/bun.cjs CHANGED
@@ -2258,7 +2258,7 @@ var import_commander = require("commander");
2258
2258
  // package.json
2259
2259
  var package_default = {
2260
2260
  name: "@storm-software/bun-tools",
2261
- version: "0.0.67",
2261
+ version: "0.0.69",
2262
2262
  private: false,
2263
2263
  description: "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
2264
2264
  repository: {
@@ -2727,6 +2727,9 @@ async function getCachedVersion(packageName, tag) {
2727
2727
  }
2728
2728
  return version;
2729
2729
  }
2730
+ async function clearVersionCache() {
2731
+ await storage.clear();
2732
+ }
2730
2733
 
2731
2734
  // src/cli/index.ts
2732
2735
  var _config = {};
@@ -2773,6 +2776,15 @@ function createProgram(config) {
2773
2776
  "An option to enable verbose logging for the update process.",
2774
2777
  false
2775
2778
  ).option("--all", "Whether to update all packages.").action(updateAction);
2779
+ program.command("clear-cache").description(
2780
+ "Clear the cached npm package versions used by the update command."
2781
+ ).action(async () => {
2782
+ await clearVersionCache();
2783
+ writeSuccess(
2784
+ `${brandIcon(_config)} Successfully cleared the storm-bun version cache.`,
2785
+ _config
2786
+ );
2787
+ });
2776
2788
  return program;
2777
2789
  } catch (error) {
2778
2790
  writeFatal(
package/bin/bun.js CHANGED
@@ -2236,7 +2236,7 @@ import { Command } from "commander";
2236
2236
  // package.json
2237
2237
  var package_default = {
2238
2238
  name: "@storm-software/bun-tools",
2239
- version: "0.0.67",
2239
+ version: "0.0.69",
2240
2240
  private: false,
2241
2241
  description: "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
2242
2242
  repository: {
@@ -2705,6 +2705,9 @@ async function getCachedVersion(packageName, tag) {
2705
2705
  }
2706
2706
  return version;
2707
2707
  }
2708
+ async function clearVersionCache() {
2709
+ await storage.clear();
2710
+ }
2708
2711
 
2709
2712
  // src/cli/index.ts
2710
2713
  var _config = {};
@@ -2751,6 +2754,15 @@ function createProgram(config) {
2751
2754
  "An option to enable verbose logging for the update process.",
2752
2755
  false
2753
2756
  ).option("--all", "Whether to update all packages.").action(updateAction);
2757
+ program.command("clear-cache").description(
2758
+ "Clear the cached npm package versions used by the update command."
2759
+ ).action(async () => {
2760
+ await clearVersionCache();
2761
+ writeSuccess(
2762
+ `${brandIcon(_config)} Successfully cleared the storm-bun version cache.`,
2763
+ _config
2764
+ );
2765
+ });
2754
2766
  return program;
2755
2767
  } catch (error) {
2756
2768
  writeFatal(
@@ -0,0 +1 @@
1
+ 'use strict';var chunkHPYBH7QT_cjs=require('./chunk-HPYBH7QT.cjs'),a=require('env-paths'),unstorage=require('unstorage'),h=require('unstorage/drivers/fs');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);var h__default=/*#__PURE__*/_interopDefault(h);var f=1e3*60*60*24,n=unstorage.createStorage({driver:h__default.default({base:a__default.default("storm-bun").cache})});function g(t,r){return `versions/${encodeURIComponent(r)}/${encodeURIComponent(t)}`}async function w(t,r){let o=g(t,r);try{let e=await n.getItem(o);if(e&&typeof e.checkedAt=="number"&&typeof e.version=="string"&&Date.now()-e.checkedAt<f)return e.version}catch{}let c=await chunkHPYBH7QT_cjs.c(t,r,{executable:"bun pm",registry:await chunkHPYBH7QT_cjs.b()});try{await n.setItem(o,{checkedAt:Date.now(),version:c});}catch{}return c}async function b(){await n.clear();}exports.a=w;exports.b=b;
@@ -0,0 +1 @@
1
+ import {c,b as b$1}from'./chunk-Y2HO4X3Y.js';import a from'env-paths';import {createStorage}from'unstorage';import h from'unstorage/drivers/fs';var f=1e3*60*60*24,n=createStorage({driver:h({base:a("storm-bun").cache})});function g(t,r){return `versions/${encodeURIComponent(r)}/${encodeURIComponent(t)}`}async function b(t,r){let o=g(t,r);try{let e=await n.getItem(o);if(e&&typeof e.checkedAt=="number"&&typeof e.version=="string"&&Date.now()-e.checkedAt<f)return e.version}catch{}let c$1=await c(t,r,{executable:"bun pm",registry:await b$1()});try{await n.setItem(o,{checkedAt:Date.now(),version:c$1});}catch{}return c$1}async function V(){await n.clear();}export{b as a,V as b};
@@ -1 +1 @@
1
- 'use strict';require('../chunk-AEB6NXCJ.cjs');var chunk3IUP2V2O_cjs=require('../chunk-3IUP2V2O.cjs'),chunk37GUJUMR_cjs=require('../chunk-37GUJUMR.cjs'),chunkIW73C7OV_cjs=require('../chunk-IW73C7OV.cjs');require('../chunk-WAL5SD4G.cjs');var chunkDK4D3PFF_cjs=require('../chunk-DK4D3PFF.cjs'),chunkUKAKS6IQ_cjs=require('../chunk-UKAKS6IQ.cjs');require('../chunk-HPYBH7QT.cjs'),require('../chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"getWorkspaceFilePath",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.a}});Object.defineProperty(exports,"readWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.b}});Object.defineProperty(exports,"writeWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.c}});Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk37GUJUMR_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.d}});Object.defineProperty(exports,"getCatalogFromPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.c}});Object.defineProperty(exports,"getRootPackageJsonPath",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.a}});Object.defineProperty(exports,"readRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.b}});Object.defineProperty(exports,"setCatalogInPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.d}});Object.defineProperty(exports,"writeRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.e}});Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkUKAKS6IQ_cjs.a}});
1
+ 'use strict';require('../chunk-AEB6NXCJ.cjs');var chunk3IUP2V2O_cjs=require('../chunk-3IUP2V2O.cjs'),chunk37GUJUMR_cjs=require('../chunk-37GUJUMR.cjs'),chunkIW73C7OV_cjs=require('../chunk-IW73C7OV.cjs');require('../chunk-WAL5SD4G.cjs');var chunkDK4D3PFF_cjs=require('../chunk-DK4D3PFF.cjs'),chunkEDGYRDKM_cjs=require('../chunk-EDGYRDKM.cjs');require('../chunk-HPYBH7QT.cjs'),require('../chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"getWorkspaceFilePath",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.a}});Object.defineProperty(exports,"readWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.b}});Object.defineProperty(exports,"writeWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.c}});Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk37GUJUMR_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.d}});Object.defineProperty(exports,"getCatalogFromPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.c}});Object.defineProperty(exports,"getRootPackageJsonPath",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.a}});Object.defineProperty(exports,"readRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.b}});Object.defineProperty(exports,"setCatalogInPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.d}});Object.defineProperty(exports,"writeRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.e}});Object.defineProperty(exports,"clearVersionCache",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.b}});Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.a}});
@@ -1,6 +1,6 @@
1
1
  export { UpgradeCatalogPackageOptions, UpgradeCatalogResult, getCatalog, getCatalogSafe, saveCatalog, setCatalog, upgradeCatalog } from './catalog.cjs';
2
2
  export { getCatalogFromPackageJson, getRootPackageJsonPath, readRootPackageJson, setCatalogInPackageJson, writeRootPackageJson } from './package-json.cjs';
3
3
  export { replaceDepsAliases } from './replace-deps-aliases.cjs';
4
- export { getCachedVersion } from './version-cache.cjs';
4
+ export { clearVersionCache, getCachedVersion } from './version-cache.cjs';
5
5
  export { getWorkspaceFilePath, readWorkspaceFile, writeWorkspaceFile } from './workspace.cjs';
6
6
  import '../types.cjs';
@@ -1,6 +1,6 @@
1
1
  export { UpgradeCatalogPackageOptions, UpgradeCatalogResult, getCatalog, getCatalogSafe, saveCatalog, setCatalog, upgradeCatalog } from './catalog.js';
2
2
  export { getCatalogFromPackageJson, getRootPackageJsonPath, readRootPackageJson, setCatalogInPackageJson, writeRootPackageJson } from './package-json.js';
3
3
  export { replaceDepsAliases } from './replace-deps-aliases.js';
4
- export { getCachedVersion } from './version-cache.js';
4
+ export { clearVersionCache, getCachedVersion } from './version-cache.js';
5
5
  export { getWorkspaceFilePath, readWorkspaceFile, writeWorkspaceFile } from './workspace.js';
6
6
  import '../types.js';
@@ -1 +1 @@
1
- import'../chunk-RJQ4TKJL.js';export{a as getWorkspaceFilePath,b as readWorkspaceFile,c as writeWorkspaceFile}from'../chunk-ACIBJPTX.js';export{a as replaceDepsAliases}from'../chunk-IMROPYHM.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-ILE6NSRA.js';import'../chunk-7QKHH2VM.js';export{c as getCatalogFromPackageJson,a as getRootPackageJsonPath,b as readRootPackageJson,d as setCatalogInPackageJson,e as writeRootPackageJson}from'../chunk-LUXOLZKJ.js';export{a as getCachedVersion}from'../chunk-2GHXV3OE.js';import'../chunk-Y2HO4X3Y.js';import'../chunk-IVWMWBEI.js';
1
+ import'../chunk-RJQ4TKJL.js';export{a as getWorkspaceFilePath,b as readWorkspaceFile,c as writeWorkspaceFile}from'../chunk-ACIBJPTX.js';export{a as replaceDepsAliases}from'../chunk-IMROPYHM.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'../chunk-ILE6NSRA.js';import'../chunk-7QKHH2VM.js';export{c as getCatalogFromPackageJson,a as getRootPackageJsonPath,b as readRootPackageJson,d as setCatalogInPackageJson,e as writeRootPackageJson}from'../chunk-LUXOLZKJ.js';export{b as clearVersionCache,a as getCachedVersion}from'../chunk-TGZPLRA7.js';import'../chunk-Y2HO4X3Y.js';import'../chunk-IVWMWBEI.js';
@@ -1 +1 @@
1
- 'use strict';var chunkUKAKS6IQ_cjs=require('../chunk-UKAKS6IQ.cjs');require('../chunk-HPYBH7QT.cjs'),require('../chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkUKAKS6IQ_cjs.a}});
1
+ 'use strict';var chunkEDGYRDKM_cjs=require('../chunk-EDGYRDKM.cjs');require('../chunk-HPYBH7QT.cjs'),require('../chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"clearVersionCache",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.b}});Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.a}});
@@ -6,5 +6,9 @@
6
6
  * @returns The cached or freshly fetched package version.
7
7
  */
8
8
  declare function getCachedVersion(packageName: string, tag: string): Promise<string>;
9
+ /**
10
+ * Remove all cached npm package versions from the user cache.
11
+ */
12
+ declare function clearVersionCache(): Promise<void>;
9
13
 
10
- export { getCachedVersion };
14
+ export { clearVersionCache, getCachedVersion };
@@ -6,5 +6,9 @@
6
6
  * @returns The cached or freshly fetched package version.
7
7
  */
8
8
  declare function getCachedVersion(packageName: string, tag: string): Promise<string>;
9
+ /**
10
+ * Remove all cached npm package versions from the user cache.
11
+ */
12
+ declare function clearVersionCache(): Promise<void>;
9
13
 
10
- export { getCachedVersion };
14
+ export { clearVersionCache, getCachedVersion };
@@ -1 +1 @@
1
- export{a as getCachedVersion}from'../chunk-2GHXV3OE.js';import'../chunk-Y2HO4X3Y.js';import'../chunk-IVWMWBEI.js';
1
+ export{b as clearVersionCache,a as getCachedVersion}from'../chunk-TGZPLRA7.js';import'../chunk-Y2HO4X3Y.js';import'../chunk-IVWMWBEI.js';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-AEB6NXCJ.cjs');var chunk3IUP2V2O_cjs=require('./chunk-3IUP2V2O.cjs'),chunk37GUJUMR_cjs=require('./chunk-37GUJUMR.cjs'),chunkIW73C7OV_cjs=require('./chunk-IW73C7OV.cjs');require('./chunk-WAL5SD4G.cjs');var chunkDK4D3PFF_cjs=require('./chunk-DK4D3PFF.cjs'),chunkUKAKS6IQ_cjs=require('./chunk-UKAKS6IQ.cjs');require('./chunk-HPYBH7QT.cjs'),require('./chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"getWorkspaceFilePath",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.a}});Object.defineProperty(exports,"readWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.b}});Object.defineProperty(exports,"writeWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.c}});Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk37GUJUMR_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.d}});Object.defineProperty(exports,"getCatalogFromPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.c}});Object.defineProperty(exports,"getRootPackageJsonPath",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.a}});Object.defineProperty(exports,"readRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.b}});Object.defineProperty(exports,"setCatalogInPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.d}});Object.defineProperty(exports,"writeRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.e}});Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkUKAKS6IQ_cjs.a}});
1
+ 'use strict';require('./chunk-SFZRYJZ2.cjs'),require('./chunk-AEB6NXCJ.cjs');var chunk3IUP2V2O_cjs=require('./chunk-3IUP2V2O.cjs'),chunk37GUJUMR_cjs=require('./chunk-37GUJUMR.cjs'),chunkIW73C7OV_cjs=require('./chunk-IW73C7OV.cjs');require('./chunk-WAL5SD4G.cjs');var chunkDK4D3PFF_cjs=require('./chunk-DK4D3PFF.cjs'),chunkEDGYRDKM_cjs=require('./chunk-EDGYRDKM.cjs');require('./chunk-HPYBH7QT.cjs'),require('./chunk-DW2HTWAU.cjs');Object.defineProperty(exports,"getWorkspaceFilePath",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.a}});Object.defineProperty(exports,"readWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.b}});Object.defineProperty(exports,"writeWorkspaceFile",{enumerable:true,get:function(){return chunk3IUP2V2O_cjs.c}});Object.defineProperty(exports,"replaceDepsAliases",{enumerable:true,get:function(){return chunk37GUJUMR_cjs.a}});Object.defineProperty(exports,"getCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.b}});Object.defineProperty(exports,"getCatalogSafe",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.a}});Object.defineProperty(exports,"saveCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.e}});Object.defineProperty(exports,"setCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.c}});Object.defineProperty(exports,"upgradeCatalog",{enumerable:true,get:function(){return chunkIW73C7OV_cjs.d}});Object.defineProperty(exports,"getCatalogFromPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.c}});Object.defineProperty(exports,"getRootPackageJsonPath",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.a}});Object.defineProperty(exports,"readRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.b}});Object.defineProperty(exports,"setCatalogInPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.d}});Object.defineProperty(exports,"writeRootPackageJson",{enumerable:true,get:function(){return chunkDK4D3PFF_cjs.e}});Object.defineProperty(exports,"clearVersionCache",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.b}});Object.defineProperty(exports,"getCachedVersion",{enumerable:true,get:function(){return chunkEDGYRDKM_cjs.a}});
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { UpgradeCatalogPackageOptions, UpgradeCatalogResult, getCatalog, getCatalogSafe, saveCatalog, setCatalog, upgradeCatalog } from './helpers/catalog.cjs';
2
2
  export { getCatalogFromPackageJson, getRootPackageJsonPath, readRootPackageJson, setCatalogInPackageJson, writeRootPackageJson } from './helpers/package-json.cjs';
3
3
  export { replaceDepsAliases } from './helpers/replace-deps-aliases.cjs';
4
- export { getCachedVersion } from './helpers/version-cache.cjs';
4
+ export { clearVersionCache, getCachedVersion } from './helpers/version-cache.cjs';
5
5
  export { getWorkspaceFilePath, readWorkspaceFile, writeWorkspaceFile } from './helpers/workspace.cjs';
6
6
  export { WorkspacePackageJson } from './types.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { UpgradeCatalogPackageOptions, UpgradeCatalogResult, getCatalog, getCatalogSafe, saveCatalog, setCatalog, upgradeCatalog } from './helpers/catalog.js';
2
2
  export { getCatalogFromPackageJson, getRootPackageJsonPath, readRootPackageJson, setCatalogInPackageJson, writeRootPackageJson } from './helpers/package-json.js';
3
3
  export { replaceDepsAliases } from './helpers/replace-deps-aliases.js';
4
- export { getCachedVersion } from './helpers/version-cache.js';
4
+ export { clearVersionCache, getCachedVersion } from './helpers/version-cache.js';
5
5
  export { getWorkspaceFilePath, readWorkspaceFile, writeWorkspaceFile } from './helpers/workspace.js';
6
6
  export { WorkspacePackageJson } from './types.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import'./chunk-GGNOJ77I.js';import'./chunk-RJQ4TKJL.js';export{a as getWorkspaceFilePath,b as readWorkspaceFile,c as writeWorkspaceFile}from'./chunk-ACIBJPTX.js';export{a as replaceDepsAliases}from'./chunk-IMROPYHM.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-ILE6NSRA.js';import'./chunk-7QKHH2VM.js';export{c as getCatalogFromPackageJson,a as getRootPackageJsonPath,b as readRootPackageJson,d as setCatalogInPackageJson,e as writeRootPackageJson}from'./chunk-LUXOLZKJ.js';export{a as getCachedVersion}from'./chunk-2GHXV3OE.js';import'./chunk-Y2HO4X3Y.js';import'./chunk-IVWMWBEI.js';
1
+ import'./chunk-GGNOJ77I.js';import'./chunk-RJQ4TKJL.js';export{a as getWorkspaceFilePath,b as readWorkspaceFile,c as writeWorkspaceFile}from'./chunk-ACIBJPTX.js';export{a as replaceDepsAliases}from'./chunk-IMROPYHM.js';export{b as getCatalog,a as getCatalogSafe,e as saveCatalog,c as setCatalog,d as upgradeCatalog}from'./chunk-ILE6NSRA.js';import'./chunk-7QKHH2VM.js';export{c as getCatalogFromPackageJson,a as getRootPackageJsonPath,b as readRootPackageJson,d as setCatalogInPackageJson,e as writeRootPackageJson}from'./chunk-LUXOLZKJ.js';export{b as clearVersionCache,a as getCachedVersion}from'./chunk-TGZPLRA7.js';import'./chunk-Y2HO4X3Y.js';import'./chunk-IVWMWBEI.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/bun-tools",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "private": false,
5
5
  "description": "A set of [Bun](https://bun.sh/) plugins and utilities for managing workspace packages/dependencies.",
6
6
  "repository": {
@@ -73,10 +73,10 @@
73
73
  "storm-bun-esm": "./bin/bun.js"
74
74
  },
75
75
  "dependencies": {
76
- "@storm-software/config": "1.138.91",
77
- "@storm-software/config-tools": "1.190.155",
78
- "@storm-software/npm-tools": "0.6.275",
79
- "@storm-software/package-constants": "0.1.167",
76
+ "@storm-software/config": "1.138.93",
77
+ "@storm-software/config-tools": "1.190.157",
78
+ "@storm-software/npm-tools": "0.6.277",
79
+ "@storm-software/package-constants": "0.1.169",
80
80
  "chalk": "^4.1.2",
81
81
  "commander": "^12.1.0",
82
82
  "defu": "^6.1.7",
@@ -89,5 +89,5 @@
89
89
  },
90
90
  "devDependencies": { "@types/node": "^25.9.9", "tsup": "8.4.0" },
91
91
  "publishConfig": { "access": "public" },
92
- "gitHead": "0ec9d8df83892574533d32d36603d46a667c0932"
92
+ "gitHead": "b146c778f114b18b4a31981e037fc030bfe31f9d"
93
93
  }
@@ -1 +0,0 @@
1
- import {c,b}from'./chunk-Y2HO4X3Y.js';import a from'env-paths';import {createStorage}from'unstorage';import h from'unstorage/drivers/fs';var g=1e3*60*60*24,s=createStorage({driver:h({base:a("storm-bun").cache})});function f(t,r){return `versions/${encodeURIComponent(r)}/${encodeURIComponent(t)}`}async function w(t,r){let n=f(t,r);try{let e=await s.getItem(n);if(e&&typeof e.checkedAt=="number"&&typeof e.version=="string"&&Date.now()-e.checkedAt<g)return e.version}catch{}let o=await c(t,r,{executable:"bun pm",registry:await b()});try{await s.setItem(n,{checkedAt:Date.now(),version:o});}catch{}return o}export{w as a};
@@ -1 +0,0 @@
1
- 'use strict';var chunkHPYBH7QT_cjs=require('./chunk-HPYBH7QT.cjs'),a=require('env-paths'),unstorage=require('unstorage'),h=require('unstorage/drivers/fs');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);var h__default=/*#__PURE__*/_interopDefault(h);var g=1e3*60*60*24,s=unstorage.createStorage({driver:h__default.default({base:a__default.default("storm-bun").cache})});function f(t,r){return `versions/${encodeURIComponent(r)}/${encodeURIComponent(t)}`}async function b(t,r){let n=f(t,r);try{let e=await s.getItem(n);if(e&&typeof e.checkedAt=="number"&&typeof e.version=="string"&&Date.now()-e.checkedAt<g)return e.version}catch{}let o=await chunkHPYBH7QT_cjs.c(t,r,{executable:"bun pm",registry:await chunkHPYBH7QT_cjs.b()});try{await s.setItem(n,{checkedAt:Date.now(),version:o});}catch{}return o}exports.a=b;