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.
- package/package.json +1 -1
- package/src/cli.js +3 -2
package/package.json
CHANGED
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.
|
|
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
|
-
|
|
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)) {
|