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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.7.11",
3
+ "version": "1.7.12",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -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);
@@ -82,7 +82,7 @@ const addNeoCommonModules = (modules) => {
82
82
  window.__NeoCommonModules[moduleId].default = curModule.default;
83
83
  }
84
84
  } else {
85
- window.__NeoCommonModules[moduleId] = curModule
85
+ window.__NeoCommonModules[moduleId] = curModule;
86
86
  }
87
87
  })
88
88
  }
@@ -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 {