spine-framework 0.1.46 → 0.1.47
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.
|
@@ -308,27 +308,9 @@ function resolveSlugFromPackage(pkg: string): string {
|
|
|
308
308
|
return pkg.replace(/^spine-framework-/, '').replace(/^@[^/]+\//, '')
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
async function checkPrerequisites(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
315
|
-
const required = PREREQS[slug]
|
|
316
|
-
if (!required || required.length === 0) return
|
|
317
|
-
|
|
318
|
-
for (const prereq of required) {
|
|
319
|
-
const { data } = await adminDb
|
|
320
|
-
.from('app_installations')
|
|
321
|
-
.select('id')
|
|
322
|
-
.eq('app_slug', prereq)
|
|
323
|
-
.eq('is_enabled', true)
|
|
324
|
-
.maybeSingle()
|
|
325
|
-
|
|
326
|
-
if (!data) {
|
|
327
|
-
console.error(` ❌ Prerequisite not installed: '${prereq}'`)
|
|
328
|
-
console.error(` Run: spine-framework install-app spine-framework-${prereq}`)
|
|
329
|
-
process.exit(1)
|
|
330
|
-
}
|
|
331
|
-
}
|
|
311
|
+
async function checkPrerequisites(_slug: string): Promise<void> {
|
|
312
|
+
// Apps are independently installable — no hardcoded prereqs.
|
|
313
|
+
// Future: read prereqs from the app's manifest.json if needed.
|
|
332
314
|
}
|
|
333
315
|
|
|
334
316
|
function copyAppFiles(pkg: string, slug: string): void {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-app.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/install-app.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"install-app.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/install-app.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAkbxC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,QAgB1D"}
|