@reactful/create 0.0.54 → 0.0.55
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
3
|
import inquirer from 'inquirer'
|
4
|
-
import { $ } from "bun"
|
5
4
|
import path from 'path'
|
6
5
|
import fs from 'fs'
|
7
6
|
|
7
|
+
const { exec } = require('child_process');
|
8
|
+
|
8
9
|
const GREEN = '\x1b[32m';
|
9
10
|
const RESET = '\x1b[0m';
|
10
11
|
const prefix = `${GREEN}+${RESET}`
|
@@ -46,7 +47,7 @@ inquirer.prompt(questions).then(async function (answers) {
|
|
46
47
|
|
47
48
|
console.log('')
|
48
49
|
|
49
|
-
|
50
|
+
exec($`cd ${answers.project}; bun install`)
|
50
51
|
})
|
51
52
|
|
52
53
|
function namingJSON(directory, projectName) {
|