cc-core-cli 1.0.5 → 1.0.6
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.
package/bin/index.js
CHANGED
|
@@ -78,9 +78,6 @@ if (action === 'upgrade') {
|
|
|
78
78
|
|
|
79
79
|
spinner.succeed('(2/2) Running npm install!')
|
|
80
80
|
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
if (action === 'admin') {
|
|
@@ -97,8 +94,8 @@ if (action === 'admin') {
|
|
|
97
94
|
|
|
98
95
|
if (action === 'genpkg') {
|
|
99
96
|
const mode = options['_'][1] || '';
|
|
100
|
-
if (!['core
|
|
101
|
-
console.error('Please type a valid mode [core
|
|
97
|
+
if (!['core', 'admin'].includes(mode)) {
|
|
98
|
+
console.error('Please type a valid mode [core|admin]');
|
|
102
99
|
return false;
|
|
103
100
|
}
|
|
104
101
|
const path = options['_'][2] || '.';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|