@mbc-cqrs-serverless/cli 1.0.24 → 1.0.25
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.
|
@@ -29,7 +29,7 @@ async function newAction(name = '', options, command) {
|
|
|
29
29
|
packageVersion = `^${matchVersions.at(-1)}`; // use the patch and minor versions
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
ui_1.logger.error(`The specified package version does not exist. Please
|
|
32
|
+
ui_1.logger.error(`The specified package version does not exist. Please choose a valid version! ${versions}`);
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -16,19 +16,19 @@ async function uiAction(options, command) {
|
|
|
16
16
|
ui_1.logger.info(`Executing command '${command.name()}' for application with options '${JSON.stringify(options)}'`);
|
|
17
17
|
const { branch, auth, component, pathDir, token = '' } = options;
|
|
18
18
|
if (componentOptions.findIndex((optionName) => optionName === component) === -1) {
|
|
19
|
-
ui_1.logger.error(`Please choose correct component options: ${componentOptions.join(', ')}`);
|
|
19
|
+
ui_1.logger.error(`Please choose the correct component options: ${componentOptions.join(', ')}`);
|
|
20
20
|
}
|
|
21
21
|
// Check command run in base src
|
|
22
22
|
if (!(0, fs_1.existsSync)(path_1.default.join(process.cwd(), 'tsconfig.json'))) {
|
|
23
23
|
ui_1.logger.error('Please run command in base folder');
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
// Check tsconfig.json
|
|
26
|
+
// Check tsconfig.json contains path @ms
|
|
27
27
|
const tsconfig = JSON.parse((0, fs_1.readFileSync)(path_1.default.join(process.cwd(), 'tsconfig.json'), 'utf8'));
|
|
28
28
|
if (tsconfig?.compilerOptions &&
|
|
29
29
|
tsconfig?.compilerOptions?.paths &&
|
|
30
30
|
tsconfig?.compilerOptions?.paths.hasOwnProperty('@ms/*')) {
|
|
31
|
-
ui_1.logger.error('The project already
|
|
31
|
+
ui_1.logger.error('The project already contains mbc-cqrs-ui-common');
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
// Copy source
|
|
@@ -9,7 +9,7 @@ function uiCommand(program) {
|
|
|
9
9
|
program
|
|
10
10
|
.command('ui-common')
|
|
11
11
|
.alias('ui')
|
|
12
|
-
.description('
|
|
12
|
+
.description('Add mbc-cqrs-ui-common components to your project.')
|
|
13
13
|
.requiredOption('-p, --pathDir <string>', 'The place of common-ui')
|
|
14
14
|
.option('-b, --branch <string>', 'The branch name', 'main')
|
|
15
15
|
.option('--auth <string>', 'The auth method (HTTPS - Token, SSH)', 'SSH')
|
|
@@ -34,7 +34,7 @@ class AbstractRunner {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @param command
|
|
37
|
-
* @returns The entire command that will be
|
|
37
|
+
* @returns The entire command that will be run when calling `run(command)`.
|
|
38
38
|
*/
|
|
39
39
|
rawFullCommand(command) {
|
|
40
40
|
const commandArgs = [...this.args, command];
|
|
@@ -26,12 +26,12 @@ exports.schematics = [
|
|
|
26
26
|
{
|
|
27
27
|
name: 'entity',
|
|
28
28
|
alias: 'en',
|
|
29
|
-
description: 'Create
|
|
29
|
+
description: 'Create an entity.',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
name: 'dto',
|
|
33
33
|
alias: 'dto',
|
|
34
|
-
description: 'Create a
|
|
34
|
+
description: 'Create a DTO.',
|
|
35
35
|
},
|
|
36
36
|
];
|
|
37
37
|
function buildSchematicsListAsTable() {
|
package/dist/utils/formatting.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.normalizeToKebabOrSnakeCase = normalizeToKebabOrSnakeCase;
|
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* @param str
|
|
7
|
-
* @returns
|
|
7
|
+
* @returns formatted string
|
|
8
8
|
* @description normalizes input to supported path and file name format.
|
|
9
9
|
* Changes camelCase strings to kebab-case, replaces spaces with dash and keeps underscores.
|
|
10
10
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbc-cqrs-serverless/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "a CLI to get started with MBC CQRS serverless framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mbc",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"@faker-js/faker": "^8.3.1",
|
|
59
59
|
"copyfiles": "^2.4.1"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "26c722916f5c8a71b5c066eca5b8db8c21dc7bcb"
|
|
62
62
|
}
|