@reactful/create 0.0.90 → 0.0.91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -39,24 +39,24 @@ inquirer.prompt(questions).then(async function (answers) {
39
39
  await downloadRepo(`commons`, destination)
40
40
  await downloadRepo(`templates/${answers.template}`, destination)
41
41
 
42
+ console.log('- templating project...')
42
43
  renamingJSON(destination, answers.project)
43
44
 
44
- console.log('- installing dependencies...')
45
45
 
46
+ console.log('- installing dependencies...')
47
+ console.log('')
46
48
  execSync(`cd ${answers.project}`)
47
49
  execSync(`bun install`)
48
50
  })
49
51
 
50
52
  function renamingJSON(directory, projectName) {
51
53
  const url = `${directory}/package.json`
54
+ console.log('renameJSON', url)
52
55
  const txt = fs.readFileSync(url, { encoding: 'utf-8' })
53
56
  const obj = JSON.parse(txt)
54
57
 
55
58
  obj.name = projectName
56
-
57
59
  fs.writeFileSync(url, JSON.stringify(obj, null, 3))
58
-
59
- console.log('')
60
60
  }
61
61
 
62
62
  const downloadRepo = async (subfolder, destination) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactful/create",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "description": "reactful scafold tool",