@reactful/create 0.0.53 → 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 +2 -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) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@reactful/create",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.55",
|
4
4
|
"main": "index.js",
|
5
5
|
"type": "module",
|
6
6
|
"description": "reactful scafold tool",
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"deploy": "npm publish --access public"
|
12
12
|
},
|
13
13
|
"dependencies": {
|
14
|
+
"bun-types": "latest",
|
14
15
|
"inquirer": "^9.2.13",
|
15
16
|
"fs": "^0.0.1-security"
|
16
17
|
}
|