spine-framework 0.3.82 → 0.3.84

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.
@@ -16,7 +16,7 @@
16
16
  */
17
17
 
18
18
  import type { Command } from 'commander'
19
- import { existsSync, mkdirSync, writeFileSync, copyFileSync, readdirSync, statSync, cpSync } from 'fs'
19
+ import { existsSync, mkdirSync, writeFileSync, copyFileSync, readdirSync, statSync, cpSync, readFileSync } from 'fs'
20
20
  import { resolve, dirname, join } from 'path'
21
21
  import { fileURLToPath } from 'url'
22
22
  import { execSync } from 'child_process'
@@ -212,7 +212,14 @@ export function registerInitCommands(program: Command) {
212
212
  console.log(' ✓ .gitignore written')
213
213
  }
214
214
 
215
- console.log('\n✅ Project initialized!\n')
215
+ // Read installed package version from the package's own package.json
216
+ let pkgVersion = 'unknown'
217
+ try {
218
+ const pkgJson = JSON.parse(readFileSync(join(PACKAGE_ROOT, 'package.json'), 'utf8'))
219
+ pkgVersion = pkgJson.version ?? 'unknown'
220
+ } catch { /* non-fatal */ }
221
+
222
+ console.log(`\n✅ Project initialized! (spine-framework@${pkgVersion})\n`)
216
223
  console.log('Next steps:')
217
224
  console.log(' 1. Edit .env with your Supabase credentials')
218
225
  console.log(' 2. Run: npx spine-framework migrate')
@@ -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.82",
3
+ "version": "0.3.84",
4
4
  "description": "Multi-tenant, modular application platform for modern SaaS systems",
5
5
  "type": "module",
6
6
  "bin": {