spine-framework 0.3.83 → 0.3.85

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.
@@ -157,8 +157,10 @@ export function registerInitCommands(program: Command) {
157
157
  ...pkgJson,
158
158
  name: existing.name || pkgJson.name,
159
159
  version: existing.version || pkgJson.version,
160
+ // spine template deps win over existing — ensures required tooling is present
160
161
  dependencies: { ...existing.dependencies, ...pkgJson.dependencies },
161
- devDependencies: existing.devDependencies || {},
162
+ // merge: template provides required devDeps, existing additions are preserved
163
+ devDependencies: { ...pkgJson.devDependencies, ...existing.devDependencies },
162
164
  }
163
165
  } catch {}
164
166
  }
@@ -222,8 +224,9 @@ export function registerInitCommands(program: Command) {
222
224
  console.log(`\n✅ Project initialized! (spine-framework@${pkgVersion})\n`)
223
225
  console.log('Next steps:')
224
226
  console.log(' 1. Edit .env with your Supabase credentials')
225
- console.log(' 2. Run: npx spine-framework migrate')
226
- console.log(' 3. Run: npm install && npm run assemble && netlify dev')
227
+ console.log(' 2. Run: npm install (installs vite, typescript, and other dev tools)')
228
+ console.log(' 3. Run: npx spine-framework migrate')
229
+ console.log(' 4. Run: npm run assemble && netlify dev')
227
230
  console.log()
228
231
 
229
232
  } catch (err: any) {
@@ -126,7 +126,10 @@ export function registerInstallAppCommands(program: Command) {
126
126
  updateRegistrationConfig(appSlug, manifest.registration)
127
127
  }
128
128
 
129
- console.log(`\n✅ ${appSlug} installed successfully!\n`)
129
+ let installedVersion = 'unknown'
130
+ try { installedVersion = JSON.parse(readFileSync(join(pkgPath, 'package.json'), 'utf8')).version ?? 'unknown' } catch {}
131
+
132
+ console.log(`\n✅ ${appSlug} installed successfully! (${pkgSlug}@${installedVersion})\n`)
130
133
  console.log('Next: npm run assemble && netlify dev\n')
131
134
 
132
135
  } catch (err: any) {
@@ -207,7 +210,10 @@ export function registerInstallAppCommands(program: Command) {
207
210
  updateRegistrationConfig(appSlug, manifest.registration)
208
211
  }
209
212
 
210
- console.log(`\n✅ ${appSlug} updated.\n`)
213
+ let updatedVersion = 'unknown'
214
+ try { updatedVersion = JSON.parse(readFileSync(join(pkgPath, 'package.json'), 'utf8')).version ?? 'unknown' } catch {}
215
+
216
+ console.log(`\n✅ ${appSlug} updated! (${pkgSlug}@${updatedVersion})\n`)
211
217
  } catch (err: any) {
212
218
  console.error(`\n❌ Update failed: ${err.message}`)
213
219
  process.exit(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.83",
3
+ "version": "0.3.85",
4
4
  "description": "Multi-tenant, modular application platform for modern SaaS systems",
5
5
  "type": "module",
6
6
  "bin": {