@powerhousedao/registry 6.0.0-dev.76 → 6.0.0-dev.78
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 +11 -6
- package/dist/src/index.js +11 -6
- package/dist/src/packages.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
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
|
|
160590
|
-
|
|
160591
|
-
|
|
160592
|
-
|
|
160593
|
-
|
|
160594
|
-
|
|
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
|
|
26675
|
-
|
|
26676
|
-
|
|
26677
|
-
|
|
26678
|
-
|
|
26679
|
-
|
|
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;
|
|
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"}
|