spoint 0.1.10 → 0.1.11
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/package.json +1 -1
- package/src/sdk/scaffold.js +3 -0
package/package.json
CHANGED
package/src/sdk/scaffold.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { join, dirname, resolve } from 'node:path'
|
|
2
2
|
import { fileURLToPath } from 'node:url'
|
|
3
3
|
import { existsSync, mkdirSync, readdirSync, copyFileSync, statSync } from 'node:fs'
|
|
4
|
+
import { spawnSync } from 'node:child_process'
|
|
4
5
|
|
|
5
6
|
const SDK_ROOT = join(dirname(fileURLToPath(import.meta.url)), '../..')
|
|
6
7
|
|
|
@@ -24,5 +25,7 @@ export async function scaffold() {
|
|
|
24
25
|
const sdkApps = join(SDK_ROOT, 'apps')
|
|
25
26
|
copyDir(sdkApps, localApps)
|
|
26
27
|
console.log(`[scaffold] created apps/ at ${localApps}`)
|
|
28
|
+
const result = spawnSync('bunx', ['skills', 'add', 'AnEntrypoint/spawnpoint'], { stdio: 'inherit', shell: true })
|
|
29
|
+
if (result.status !== 0) console.warn('[scaffold] skills install failed, continuing without it')
|
|
27
30
|
console.log(`[scaffold] run 'spoint' to start the server`)
|
|
28
31
|
}
|