spine-framework 0.1.51 → 0.1.53
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.
|
@@ -364,9 +364,14 @@ async function installApp(slug: string, options: InstallOptions): Promise<void>
|
|
|
364
364
|
let packageName: string | null = null
|
|
365
365
|
|
|
366
366
|
if (isNpmPackage(slug)) {
|
|
367
|
-
|
|
367
|
+
// Strip version specifier (e.g. spine-framework-cortex@latest → spine-framework-cortex)
|
|
368
|
+
// Handles: pkg@latest, pkg@1.2.3, @scope/pkg@latest (preserve leading @ for scoped packages)
|
|
369
|
+
const barePackageName = slug.startsWith('@')
|
|
370
|
+
? slug.replace(/(@[^/]+\/[^@]+)@.*$/, '$1') // @scope/pkg@version → @scope/pkg
|
|
371
|
+
: slug.replace(/@.*$/, '') // pkg@version → pkg
|
|
372
|
+
packageName = barePackageName
|
|
368
373
|
console.log(`📥 Step 1: Installing npm package...`)
|
|
369
|
-
const pkgDir = resolve(PROJECT_ROOT, `node_modules/${
|
|
374
|
+
const pkgDir = resolve(PROJECT_ROOT, `node_modules/${barePackageName}`)
|
|
370
375
|
if (!existsSync(pkgDir)) {
|
|
371
376
|
try {
|
|
372
377
|
console.log(` Running: npm install ${slug}`)
|
|
@@ -379,11 +384,11 @@ async function installApp(slug: string, options: InstallOptions): Promise<void>
|
|
|
379
384
|
} else {
|
|
380
385
|
console.log(` ⏭️ Package already in node_modules`)
|
|
381
386
|
}
|
|
382
|
-
resolvedSlug = resolveSlugFromPackage(
|
|
387
|
+
resolvedSlug = resolveSlugFromPackage(barePackageName)
|
|
383
388
|
console.log(` ✓ App slug: ${resolvedSlug}`)
|
|
384
389
|
|
|
385
390
|
console.log(`\n📁 Step 2: Ejecting app files...`)
|
|
386
|
-
copyAppFiles(
|
|
391
|
+
copyAppFiles(barePackageName, resolvedSlug)
|
|
387
392
|
}
|
|
388
393
|
|
|
389
394
|
// Check prerequisites (e.g. portal requires cortex)
|
|
@@ -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;AAicxC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,QAgB1D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spine-framework",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Spine — enterprise application framework built on Supabase + Netlify + React",
|
|
6
6
|
"type": "module",
|
|
@@ -93,16 +93,22 @@
|
|
|
93
93
|
"commander": "^12.0.0",
|
|
94
94
|
"jsonwebtoken": "^9.0.3",
|
|
95
95
|
"jwt-decode": "^4.0.0",
|
|
96
|
+
"pg": "^8.13.0",
|
|
96
97
|
"tsx": "^4.21.0",
|
|
97
|
-
"ws": "^8.21.0"
|
|
98
|
-
"pg": "^8.13.0"
|
|
98
|
+
"ws": "^8.21.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@netlify/functions": "^2.0.0",
|
|
102
102
|
"react": "^18.0.0",
|
|
103
103
|
"react-dom": "^18.0.0",
|
|
104
104
|
"react-router-dom": "^6.0.0",
|
|
105
|
-
"vite": "^5.0.0 || ^6.0.0"
|
|
105
|
+
"vite": "^5.0.0 || ^6.0.0",
|
|
106
|
+
"@tiptap/react": "^3.24.0",
|
|
107
|
+
"@tiptap/starter-kit": "^3.24.0",
|
|
108
|
+
"@tiptap/extension-code-block-lowlight": "^3.24.0",
|
|
109
|
+
"@tiptap/extension-placeholder": "^3.24.0",
|
|
110
|
+
"lowlight": "^3.3.0",
|
|
111
|
+
"highlight.js": "^11.11.1"
|
|
106
112
|
},
|
|
107
113
|
"peerDependenciesMeta": {
|
|
108
114
|
"@netlify/functions": {
|
|
@@ -119,6 +125,24 @@
|
|
|
119
125
|
},
|
|
120
126
|
"vite": {
|
|
121
127
|
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"@tiptap/react": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"@tiptap/starter-kit": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"@tiptap/extension-code-block-lowlight": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"@tiptap/extension-placeholder": {
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"lowlight": {
|
|
142
|
+
"optional": true
|
|
143
|
+
},
|
|
144
|
+
"highlight.js": {
|
|
145
|
+
"optional": true
|
|
122
146
|
}
|
|
123
147
|
},
|
|
124
148
|
"devDependencies": {
|
|
@@ -144,18 +168,18 @@
|
|
|
144
168
|
"@supabase/supabase-js": "^2.49.1",
|
|
145
169
|
"@tailwindcss/typography": "^0.5.19",
|
|
146
170
|
"@tanstack/react-query": "^5.95.2",
|
|
147
|
-
"@tiptap/extension-code-block-lowlight": "^3.
|
|
148
|
-
"@tiptap/extension-image": "^3.
|
|
149
|
-
"@tiptap/extension-link": "^3.
|
|
150
|
-
"@tiptap/extension-placeholder": "^3.
|
|
151
|
-
"@tiptap/extension-table": "^3.
|
|
152
|
-
"@tiptap/extension-table-cell": "^3.
|
|
153
|
-
"@tiptap/extension-table-header": "^3.
|
|
154
|
-
"@tiptap/extension-table-row": "^3.
|
|
155
|
-
"@tiptap/extension-youtube": "^3.
|
|
156
|
-
"@tiptap/pm": "^3.
|
|
157
|
-
"@tiptap/react": "^3.
|
|
158
|
-
"@tiptap/starter-kit": "^3.
|
|
171
|
+
"@tiptap/extension-code-block-lowlight": "^3.24.0",
|
|
172
|
+
"@tiptap/extension-image": "^3.24.0",
|
|
173
|
+
"@tiptap/extension-link": "^3.24.0",
|
|
174
|
+
"@tiptap/extension-placeholder": "^3.24.0",
|
|
175
|
+
"@tiptap/extension-table": "^3.24.0",
|
|
176
|
+
"@tiptap/extension-table-cell": "^3.24.0",
|
|
177
|
+
"@tiptap/extension-table-header": "^3.24.0",
|
|
178
|
+
"@tiptap/extension-table-row": "^3.24.0",
|
|
179
|
+
"@tiptap/extension-youtube": "^3.24.0",
|
|
180
|
+
"@tiptap/pm": "^3.24.0",
|
|
181
|
+
"@tiptap/react": "^3.24.0",
|
|
182
|
+
"@tiptap/starter-kit": "^3.24.0",
|
|
159
183
|
"@types/js-yaml": "^4.0.9",
|
|
160
184
|
"@types/node": "^22.12.0",
|
|
161
185
|
"@types/react": "^18.3.18",
|