@maka/maka-cli 5.140.0 → 5.141.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.141.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 3.x applications using React.",
|
|
@@ -4,15 +4,10 @@ import { Log } from '../../tools/log/log.class.js';
|
|
|
4
4
|
* Prompts for which environment to target when --env wasn't given.
|
|
5
5
|
*/
|
|
6
6
|
export async function promptForEnv(cfg, opts = {}) {
|
|
7
|
-
const { message = 'Which environment?'
|
|
8
|
-
|
|
9
|
-
if (excludeLocal) {
|
|
10
|
-
configs = configs.filter(config => config !== 'local');
|
|
11
|
-
}
|
|
7
|
+
const { message = 'Which environment?' } = opts;
|
|
8
|
+
const configs = cfg.getAppProjectConfigs();
|
|
12
9
|
if (configs.length === 0) {
|
|
13
|
-
Log.error(
|
|
14
|
-
? 'No configuration other than local found. Consider running "maka g:config production" first.'
|
|
15
|
-
: 'No configurations found. Consider running "maka g:config local" first.');
|
|
10
|
+
Log.error('No configurations found. Consider running "maka g:config local" first.');
|
|
16
11
|
process.exit(1);
|
|
17
12
|
}
|
|
18
13
|
if (configs.length === 1) {
|
|
@@ -34,7 +34,7 @@ Command.create({
|
|
|
34
34
|
]
|
|
35
35
|
}, async function (args, opts) {
|
|
36
36
|
try {
|
|
37
|
-
const env = opts.env ? this.cfg.getEnvFromShorthand(opts.env) : await promptForEnv(this.cfg
|
|
37
|
+
const env = opts.env ? this.cfg.getEnvFromShorthand(opts.env) : await promptForEnv(this.cfg);
|
|
38
38
|
if (!this.cfg.checkConfigExists(env)) {
|
|
39
39
|
Log.error(`No configuration: ${env}, consider running "maka g:config ${env}"`);
|
|
40
40
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.141.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 3.x applications using React.",
|