Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 33027d9

Browse files
committed
better visibility of default scope variable
1 parent 82ab000 commit 33027d9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

create-service/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const pkg = require('../package');
1010
const chalk = require('chalk');
1111

1212

13+
const DEFAULT_SCOPE = '@packagedcomponents/';
14+
1315
pkgInfo();
1416
start();
1517

@@ -27,6 +29,7 @@ async function start() {
2729

2830
if (!fs.existsSync(packagePath)) {
2931
const response = await prompt.packagePrompt();
32+
response.scope = DEFAULT_SCOPE;
3033
const txt = templatePackage.build(response);
3134
fs.writeFileSync(packagePath, txt);
3235
doContinue = true;

create-service/prompt.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ const getPrompt = async (schema) => {
7474
prompt.start();
7575
prompt.get(schema, (err, result) => {
7676
if (err) throw err;
77-
else {
78-
result.scope = '@packagedcomponents'
79-
resolve(result);
80-
}
77+
else resolve(result);
8178
});
8279
});
8380
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-frontend-cli",
3-
"version": "1.0.4",
3+
"version": "1.0.6",
44
"description": "A collection of scripts for setting up new cloud service UI projects.",
55
"bin": {
66
"web-cli": "./index.js",

0 commit comments

Comments
 (0)