@opra/cli 0.14.2 → 0.14.3
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.
|
@@ -23,7 +23,7 @@ async function generateService(config) {
|
|
|
23
23
|
console_1.default.log(chalk_1.default.yellow('Retrieved service info:'), chalk_1.default.whiteBright(metadata.info.title), '-', chalk_1.default.whiteBright(metadata.info.version));
|
|
24
24
|
console_1.default.log(chalk_1.default.yellow('Removing old files..'));
|
|
25
25
|
(0, delete_files_js_1.deleteFiles)(config.outDir);
|
|
26
|
-
let name = (metadata.info.title || 'Service1').replace(/[^\w_$]*/g, '');
|
|
26
|
+
let name = (config.name || metadata.info.title || 'Service1').replace(/[^\w_$]*/g, '');
|
|
27
27
|
name = name.charAt(0).toUpperCase() + name.substring(1);
|
|
28
28
|
const ctx = {
|
|
29
29
|
serviceUrl: config.serviceUrl,
|
|
@@ -19,7 +19,7 @@ export async function generateService(config) {
|
|
|
19
19
|
console.log(chalk.yellow('Retrieved service info:'), chalk.whiteBright(metadata.info.title), '-', chalk.whiteBright(metadata.info.version));
|
|
20
20
|
console.log(chalk.yellow('Removing old files..'));
|
|
21
21
|
deleteFiles(config.outDir);
|
|
22
|
-
let name = (metadata.info.title || 'Service1').replace(/[^\w_$]*/g, '');
|
|
22
|
+
let name = (config.name || metadata.info.title || 'Service1').replace(/[^\w_$]*/g, '');
|
|
23
23
|
name = name.charAt(0).toUpperCase() + name.substring(1);
|
|
24
24
|
const ctx = {
|
|
25
25
|
serviceUrl: config.serviceUrl,
|