@geastack/cli 0.1.29 → 0.1.31

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/cli",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "type": "module",
5
5
  "description": "Command-line front door for GeaStack apps, targets, and local toolchains.",
6
6
  "publishConfig": {
@@ -27,8 +27,8 @@
27
27
  "create-geastack": "bin/create-geastack.mjs"
28
28
  },
29
29
  "dependencies": {
30
- "@geastack/core": "0.1.5",
31
- "@geastack/targets": "0.1.24"
30
+ "@geastack/core": "0.1.6",
31
+ "@geastack/targets": "0.1.26"
32
32
  },
33
33
  "scripts": {
34
34
  "check": "node --check bin/gea.mjs && node --check bin/create-geastack.mjs && find src test packages -name '*.mjs' -print0 | xargs -0 -n1 node --check",
@@ -15,7 +15,9 @@ import {
15
15
  formatStarterChoice
16
16
  } from './starter-catalog.mjs'
17
17
 
18
- const cliVersion = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version
18
+ const cliPackage = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf8'))
19
+ const cliVersion = cliPackage.version
20
+ const coreVersion = String(cliPackage.dependencies?.['@geastack/core'] || '').replace(/^[^0-9]*/, '')
19
21
 
20
22
  export async function runCreateGeastack(argv, io = {}) {
21
23
  const parsed = parseArgs(argv)
@@ -40,7 +42,7 @@ export async function runCreateGeastack(argv, io = {}) {
40
42
 
41
43
  const ctx = createContext(parsed, env, cwd)
42
44
  const displayName = option(parsed, 'name', titleFromId(appId))
43
- const coreDependency = option(parsed, 'core-dependency') || '^0.1.4'
45
+ const coreDependency = option(parsed, 'core-dependency') || `^${coreVersion}`
44
46
  const cliDependency = option(parsed, 'cli-dependency') || `^${cliVersion}`
45
47
  const starter = await resolveStarter(ctx, parsed, io)
46
48
  const entry = projectRelativePath(starter.starter?.entry || starter.example?.entry || 'index.tsx', 'entry')