@reactful/create 0.1.3 → 0.1.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/index.js +4 -2
- package/package.json +4 -2
package/index.js
CHANGED
@@ -33,14 +33,16 @@ const questions = [{
|
|
33
33
|
inquirer.prompt(questions).then(prompting)
|
34
34
|
|
35
35
|
async function prompting(answers) {
|
36
|
+
console.log('- preparing...')
|
37
|
+
|
36
38
|
if (!answers.project) throw 'Required project name!'
|
37
39
|
|
38
40
|
const destination = path.join(process.cwd(), answers.project)
|
39
41
|
const temporaryPath = path.join(destination, 'temp')
|
40
|
-
|
42
|
+
|
41
43
|
await createDirectory(destination)
|
42
44
|
|
43
|
-
console.log('-
|
45
|
+
console.log('- loading NPM...')
|
44
46
|
await download('@reactful/create', temporaryPath)
|
45
47
|
|
46
48
|
console.log('- copying template...')
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@reactful/create",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.5",
|
4
4
|
"main": "index.js",
|
5
5
|
"type": "module",
|
6
6
|
"description": "reactful scafold tool",
|
@@ -16,7 +16,9 @@
|
|
16
16
|
],
|
17
17
|
"scripts": {
|
18
18
|
"start": "bun run index.js",
|
19
|
-
"
|
19
|
+
"patch": "npm version patch; npm publish --access public",
|
20
|
+
"minor": "npm version minor; npm publish --access public",
|
21
|
+
"major": "npm version major; npm publish --access public"
|
20
22
|
},
|
21
23
|
"license": "MIT",
|
22
24
|
"dependencies": {
|