@strapi/cloud-cli 0.0.0-next.d54a672641d83234230d3d80d92aaf87f60f8c75 → 0.0.0-next.fe88c7878fe2948cfdc68f4867329c1032a618b2
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/dist/index.js +55 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -24
- package/dist/index.mjs.map +1 -1
- package/dist/src/create-project/action.d.ts.map +1 -1
- package/dist/src/create-project/utils/project-questions.utils.d.ts +20 -0
- package/dist/src/create-project/utils/project-questions.utils.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/src/create-project/utils/apply-default-name.d.ts +0 -7
- package/dist/src/create-project/utils/apply-default-name.d.ts.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DistinctQuestion } from 'inquirer';
|
|
2
|
+
import type { ProjectAnswers } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Apply default values to questions based on the provided mapper
|
|
5
|
+
* @param questionsMap - A partial object with keys matching the ProjectAnswers keys and values being the default value or a function to get the default value
|
|
6
|
+
*/
|
|
7
|
+
export declare function questionDefaultValuesMapper(questionsMap: Partial<{
|
|
8
|
+
[K in keyof ProjectAnswers]: ((question: DistinctQuestion<ProjectAnswers>) => ProjectAnswers[K]) | ProjectAnswers[K];
|
|
9
|
+
}>): (questions: ReadonlyArray<DistinctQuestion<ProjectAnswers>>) => ReadonlyArray<DistinctQuestion<ProjectAnswers>>;
|
|
10
|
+
/**
|
|
11
|
+
* Get default values from questions
|
|
12
|
+
* @param questions - An array of questions for project creation
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDefaultsFromQuestions(questions: ReadonlyArray<DistinctQuestion<ProjectAnswers>>): Partial<ProjectAnswers>;
|
|
15
|
+
/**
|
|
16
|
+
* Get the default node version based on the current node version if it is in the list of choices
|
|
17
|
+
* @param question - The question for the node version in project creation
|
|
18
|
+
*/
|
|
19
|
+
export declare function getProjectNodeVersionDefault(question: DistinctQuestion<ProjectAnswers>): string;
|
|
20
|
+
//# sourceMappingURL=project-questions.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-questions.utils.d.ts","sourceRoot":"","sources":["../../../../src/create-project/utils/project-questions.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,OAAO,CAAC;KACnB,CAAC,IAAI,MAAM,cAAc,GACtB,CAAC,CAAC,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,GACnE,cAAc,CAAC,CAAC,CAAC;CACtB,CAAC,eAGW,cAAc,iBAAiB,cAAc,CAAC,CAAC,KACzD,cAAc,iBAAiB,cAAc,CAAC,CAAC,CAyBnD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,aAAa,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,GACzD,OAAO,CAAC,cAAc,CAAC,CAOzB;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,GAAG,MAAM,CAW/F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/cloud-cli",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.fe88c7878fe2948cfdc68f4867329c1032a618b2",
|
|
4
4
|
"description": "Commands to interact with the Strapi Cloud",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"watch": "pack-up watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@strapi/utils": "0.0.0-next.
|
|
48
|
+
"@strapi/utils": "0.0.0-next.fe88c7878fe2948cfdc68f4867329c1032a618b2",
|
|
49
49
|
"axios": "1.6.0",
|
|
50
50
|
"chalk": "4.1.2",
|
|
51
51
|
"cli-progress": "3.12.0",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"@types/cli-progress": "3.11.5",
|
|
71
71
|
"@types/eventsource": "1.1.15",
|
|
72
72
|
"@types/lodash": "^4.14.191",
|
|
73
|
-
"eslint-config-custom": "0.0.0-next.
|
|
74
|
-
"tsconfig": "0.0.0-next.
|
|
73
|
+
"eslint-config-custom": "0.0.0-next.fe88c7878fe2948cfdc68f4867329c1032a618b2",
|
|
74
|
+
"tsconfig": "0.0.0-next.fe88c7878fe2948cfdc68f4867329c1032a618b2"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=18.0.0 <=20.x.x",
|
|
78
78
|
"npm": ">=6.0.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "fe88c7878fe2948cfdc68f4867329c1032a618b2"
|
|
81
81
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DistinctQuestion } from 'inquirer';
|
|
2
|
-
import { ProjectAnswers } from '../../types';
|
|
3
|
-
export declare function applyDefaultName(newDefaultName: string, questions: ReadonlyArray<DistinctQuestion<ProjectAnswers>>, defaultValues: Partial<ProjectAnswers>): {
|
|
4
|
-
newQuestions: ReadonlyArray<DistinctQuestion<ProjectAnswers>>;
|
|
5
|
-
newDefaultValues: Partial<ProjectAnswers>;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=apply-default-name.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply-default-name.d.ts","sourceRoot":"","sources":["../../../../src/create-project/utils/apply-default-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAgB,gBAAgB,CAC9B,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,aAAa,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,EAC1D,aAAa,EAAE,OAAO,CAAC,cAAc,CAAC,GACrC;IACD,YAAY,EAAE,aAAa,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,gBAAgB,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAC3C,CAaA"}
|