neo-cmp-cli 1.7.11 → 1.7.12
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/package.json
CHANGED
package/src/module/index.js
CHANGED
|
@@ -176,6 +176,7 @@ yargs
|
|
|
176
176
|
try {
|
|
177
177
|
const loginService = new NeoLoginService(curConfig.neoConfig);
|
|
178
178
|
await loginService.login();
|
|
179
|
+
process.exit(0);
|
|
179
180
|
} catch (error) {
|
|
180
181
|
errorLog(`\n登录失败: ${error.message}`);
|
|
181
182
|
process.exit(1);
|
|
@@ -195,6 +196,7 @@ yargs
|
|
|
195
196
|
try {
|
|
196
197
|
const loginService = new NeoLoginService(curConfig.neoConfig);
|
|
197
198
|
await loginService.logout();
|
|
199
|
+
process.exit(0);
|
|
198
200
|
} catch (error) {
|
|
199
201
|
errorLog(`\n登出失败: ${error.message}`);
|
|
200
202
|
process.exit(1);
|
|
@@ -129,13 +129,6 @@ const buildComponentData = async (assetsRoot, cmpInfo) => {
|
|
|
129
129
|
* 4. 保存组件信息到 NeoCRM 平台:将组件信息保存到平台数据库
|
|
130
130
|
*/
|
|
131
131
|
const pushCmp = async (config, cmpType) => {
|
|
132
|
-
const { auth: credentials } = config;
|
|
133
|
-
|
|
134
|
-
if (!credentials) {
|
|
135
|
-
errorLog('未找到 NeoCRM 平台授权配置(neo.config.js / neoConfig)');
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
132
|
const spinner = ora('正在发布组件...').start();
|
|
140
133
|
|
|
141
134
|
try {
|