create-strapi-app 4.1.10-beta.0 → 4.1.12
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/create-strapi-app.js +1 -2
- package/package.json +3 -3
- package/utils/prompt-user.js +4 -4
package/create-strapi-app.js
CHANGED
|
@@ -80,8 +80,7 @@ async function initProject(projectName, program) {
|
|
|
80
80
|
return generateApp(projectName, program);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
const prompt = await promptUser(projectName, program);
|
|
84
|
-
|
|
83
|
+
const prompt = await promptUser(projectName, program, hasDatabaseOptions);
|
|
85
84
|
const directory = prompt.directory || projectName;
|
|
86
85
|
await checkInstallPath(resolve(directory));
|
|
87
86
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-strapi-app",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.12",
|
|
4
4
|
"description": "Generate a new Strapi application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create-strapi-app",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test": "echo \"no tests yet\""
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@strapi/generate-new": "4.1.
|
|
41
|
+
"@strapi/generate-new": "4.1.12",
|
|
42
42
|
"commander": "6.1.0",
|
|
43
43
|
"inquirer": "8.2.0"
|
|
44
44
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"node": ">=12.22.0 <=16.x.x",
|
|
47
47
|
"npm": ">=6.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ab698015cfc4f43fa0ce2ae94ec59e00a67e4cda"
|
|
50
50
|
}
|
package/utils/prompt-user.js
CHANGED
|
@@ -7,8 +7,8 @@ const inquirer = require('inquirer');
|
|
|
7
7
|
* @param {string|null} template - The Github repo of the template
|
|
8
8
|
* @returns Object containting prompt answers
|
|
9
9
|
*/
|
|
10
|
-
module.exports = async function promptUser(projectName, program) {
|
|
11
|
-
const questions = await getPromptQuestions(projectName, program);
|
|
10
|
+
module.exports = async function promptUser(projectName, program, hasDatabaseOptions) {
|
|
11
|
+
const questions = await getPromptQuestions(projectName, program, hasDatabaseOptions);
|
|
12
12
|
return inquirer.prompt(questions);
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -17,7 +17,7 @@ module.exports = async function promptUser(projectName, program) {
|
|
|
17
17
|
* @param {string|null} template - The template the project should use
|
|
18
18
|
* @returns Array of prompt question objects
|
|
19
19
|
*/
|
|
20
|
-
async function getPromptQuestions(projectName, program) {
|
|
20
|
+
async function getPromptQuestions(projectName, program, hasDatabaseOptions) {
|
|
21
21
|
return [
|
|
22
22
|
{
|
|
23
23
|
type: 'input',
|
|
@@ -30,7 +30,7 @@ async function getPromptQuestions(projectName, program) {
|
|
|
30
30
|
type: 'list',
|
|
31
31
|
name: 'quick',
|
|
32
32
|
message: 'Choose your installation type',
|
|
33
|
-
when: !program.quickstart,
|
|
33
|
+
when: !program.quickstart && !hasDatabaseOptions,
|
|
34
34
|
choices: [
|
|
35
35
|
{
|
|
36
36
|
name: 'Quickstart (recommended)',
|