@powerhousedao/registry 6.0.0-dev.77 → 6.0.0-dev.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/cli.js CHANGED
@@ -160586,13 +160586,18 @@ class CdnCache {
160586
160586
  import fs4 from "node:fs";
160587
160587
  import path4 from "node:path";
160588
160588
  function readManifest(dir) {
160589
- const manifestPath = path4.join(dir, "powerhouse.manifest.json");
160590
- try {
160591
- const raw = fs4.readFileSync(manifestPath, "utf-8");
160592
- return JSON.parse(raw);
160593
- } catch {
160594
- return null;
160589
+ const candidates = [
160590
+ path4.join(dir, "powerhouse.manifest.json"),
160591
+ path4.join(dir, "cdn", "powerhouse.manifest.json"),
160592
+ path4.join(dir, "dist", "powerhouse.manifest.json")
160593
+ ];
160594
+ for (const manifestPath of candidates) {
160595
+ try {
160596
+ const raw = fs4.readFileSync(manifestPath, "utf-8");
160597
+ return JSON.parse(raw);
160598
+ } catch {}
160595
160599
  }
160600
+ return null;
160596
160601
  }
160597
160602
  function getLatestVersionDir(pkgDir) {
160598
160603
  let entries;
package/dist/src/index.js CHANGED
@@ -26671,13 +26671,18 @@ import path3 from "node:path";
26671
26671
  import fs3 from "node:fs";
26672
26672
  import path2 from "node:path";
26673
26673
  function readManifest(dir) {
26674
- const manifestPath = path2.join(dir, "powerhouse.manifest.json");
26675
- try {
26676
- const raw = fs3.readFileSync(manifestPath, "utf-8");
26677
- return JSON.parse(raw);
26678
- } catch {
26679
- return null;
26674
+ const candidates = [
26675
+ path2.join(dir, "powerhouse.manifest.json"),
26676
+ path2.join(dir, "cdn", "powerhouse.manifest.json"),
26677
+ path2.join(dir, "dist", "powerhouse.manifest.json")
26678
+ ];
26679
+ for (const manifestPath of candidates) {
26680
+ try {
26681
+ const raw = fs3.readFileSync(manifestPath, "utf-8");
26682
+ return JSON.parse(raw);
26683
+ } catch {}
26680
26684
  }
26685
+ return null;
26681
26686
  }
26682
26687
  function getLatestVersionDir(pkgDir) {
26683
26688
  let entries;
@@ -1 +1 @@
1
- {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/packages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,YAAY,CAAC;AA0BlE,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,WAAW,GAAG,IAAI,CAgBpB;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,EAAE,CAoDhE;AAED,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,WAAW,EAAE,CASf"}
1
+ {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../src/packages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,YAAY,CAAC;AAiClE,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,WAAW,GAAG,IAAI,CAgBpB;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,EAAE,CAoDhE;AAED,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,WAAW,EAAE,CASf"}