rahman-resources 1.14.1 → 1.14.2
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/bin/compose-state.mjs +4 -2
- package/lib/dna.mjs +2 -1
- package/package.json +1 -1
package/bin/compose-state.mjs
CHANGED
|
@@ -50,9 +50,11 @@ export function readStateFromRr(rrPath) {
|
|
|
50
50
|
};
|
|
51
51
|
const auth = provider ? authMap[provider] ?? undefined : undefined;
|
|
52
52
|
|
|
53
|
+
const slicesArr = Array.isArray(raw?.slices) ? raw.slices : [];
|
|
54
|
+
const featuresArr = Array.isArray(raw?.features) ? raw.features : [];
|
|
53
55
|
const slicesInstalled = [
|
|
54
|
-
...
|
|
55
|
-
...
|
|
56
|
+
...slicesArr.map((s) => s?.slug).filter(Boolean),
|
|
57
|
+
...featuresArr.map((f) => f?.slug).filter(Boolean),
|
|
56
58
|
];
|
|
57
59
|
|
|
58
60
|
return {
|
package/lib/dna.mjs
CHANGED
|
@@ -132,7 +132,8 @@ export function listAllDNA() {
|
|
|
132
132
|
const out = [];
|
|
133
133
|
for (const f of files) {
|
|
134
134
|
const slug = f.replace(/\.dna\.json$/, "");
|
|
135
|
-
|
|
135
|
+
let dna = null;
|
|
136
|
+
try { dna = readDNA(slug); } catch { /* skip corrupt/oddly-named lineage file, don't crash the listing */ }
|
|
136
137
|
if (dna) out.push(dna);
|
|
137
138
|
}
|
|
138
139
|
// Stable ordering — alphabetical by slug.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rahman-resources",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Rahman Resources (rr) — shadcn-style installer for vertical slices. `npx resources add <slug>` copies slice into your project's `slices/<slug>/`. You own the files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|