This repository was archived by the owner on Nov 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const pkg = require('../package');
10
10
const chalk = require ( 'chalk' ) ;
11
11
12
12
13
+ const DEFAULT_SCOPE = '@packagedcomponents/' ;
14
+
13
15
pkgInfo ( ) ;
14
16
start ( ) ;
15
17
@@ -27,6 +29,7 @@ async function start() {
27
29
28
30
if ( ! fs . existsSync ( packagePath ) ) {
29
31
const response = await prompt . packagePrompt ( ) ;
32
+ response . scope = DEFAULT_SCOPE ;
30
33
const txt = templatePackage . build ( response ) ;
31
34
fs . writeFileSync ( packagePath , txt ) ;
32
35
doContinue = true ;
Original file line number Diff line number Diff line change @@ -74,10 +74,7 @@ const getPrompt = async (schema) => {
74
74
prompt . start ( ) ;
75
75
prompt . get ( schema , ( err , result ) => {
76
76
if ( err ) throw err ;
77
- else {
78
- result . scope = '@packagedcomponents'
79
- resolve ( result ) ;
80
- }
77
+ else resolve ( result ) ;
81
78
} ) ;
82
79
} ) ;
83
80
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unity-frontend-cli" ,
3
- "version" : " 1.0.4 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " A collection of scripts for setting up new cloud service UI projects." ,
5
5
"bin" : {
6
6
"web-cli" : " ./index.js" ,
You can’t perform that action at this time.
0 commit comments