create-sonicjs 2.0.6 → 2.0.8

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sonicjs",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Create a new SonicJS application with zero configuration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "prompts": "^2.4.2",
42
42
  "kleur": "^4.1.5",
43
43
  "ora": "^8.1.3",
44
- "execa": "^10.0.0",
44
+ "execa": "^9.6.0",
45
45
  "fs-extra": "^11.2.0",
46
46
  "validate-npm-package-name": "^7.0.0"
47
47
  },
package/src/cli.js CHANGED
@@ -11,8 +11,10 @@ import validatePackageName from 'validate-npm-package-name'
11
11
 
12
12
  const __dirname = path.dirname(fileURLToPath(import.meta.url))
13
13
 
14
- // Version
15
- const VERSION = '2.0.0-beta.9'
14
+ // Read version from package.json
15
+ const packageJsonPath = path.join(__dirname, '../package.json')
16
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))
17
+ const VERSION = packageJson.version
16
18
 
17
19
  // Templates available
18
20
  const TEMPLATES = {
@@ -382,7 +384,7 @@ async function copyTemplate(templateName, targetDir, options) {
382
384
 
383
385
  // Add @sonicjs-cms/core dependency
384
386
  packageJson.dependencies = {
385
- '@sonicjs-cms/core': '^2.0.5',
387
+ '@sonicjs-cms/core': '^2.0.6',
386
388
  ...packageJson.dependencies
387
389
  }
388
390