create-sonicjs 2.0.0-alpha.4 → 2.0.0-alpha.5

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 +1 -1
  2. package/src/cli.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sonicjs",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.5",
4
4
  "description": "Create a new SonicJS application with zero configuration",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -12,7 +12,7 @@ import validatePackageName from 'validate-npm-package-name'
12
12
  const __dirname = path.dirname(fileURLToPath(import.meta.url))
13
13
 
14
14
  // Version
15
- const VERSION = '2.0.0-alpha.4'
15
+ const VERSION = '2.0.0-alpha.5'
16
16
 
17
17
  // Templates available
18
18
  const TEMPLATES = {
@@ -252,7 +252,8 @@ async function createProject(answers, flags) {
252
252
  }
253
253
 
254
254
  async function copyTemplate(templateName, targetDir, options) {
255
- const templateDir = path.resolve(__dirname, '../../../templates/starter')
255
+ // Templates are in the package: node_modules/create-sonicjs/templates/starter
256
+ const templateDir = path.resolve(__dirname, '../templates/starter')
256
257
 
257
258
  // Check if template exists
258
259
  if (!fs.existsSync(templateDir)) {