@reactful/create 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -16,7 +16,9 @@ console.log(line)
|
|
16
16
|
console.log(`${decor}( ${GREEN}reactful${RESET}.js )${decor}`)
|
17
17
|
console.log(line)
|
18
18
|
|
19
|
-
const
|
19
|
+
const nodeModulesPath = 'node_modules/@reactful/create'
|
20
|
+
|
21
|
+
const templatePath = path.join(process.cwd(), nodeModulesPath, 'templates')
|
20
22
|
|
21
23
|
const templates = fs.readdirSync(templatePath)
|
22
24
|
.map(x => ({ name:x, path: `${templatePath}/${x}`}))
|