cloudcc-cli 0.6.7 → 0.6.8
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/README.md +7 -0
- package/package.json +1 -1
- package/src/builderBaseSDK.js +8 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/src/builderBaseSDK.js
CHANGED
|
@@ -14,6 +14,8 @@ const { askType } = require("../utils/askTool")
|
|
|
14
14
|
const { pushCodeAndTags } = require("../utils/pushCode")
|
|
15
15
|
// 通知飞书
|
|
16
16
|
const { notifyFeishu } = require("../utils/NotifyIM")
|
|
17
|
+
// 网络请求
|
|
18
|
+
const { postParams } = require("../utils/http")
|
|
17
19
|
/**
|
|
18
20
|
* 打包基础SDK,并发布到NPM
|
|
19
21
|
*/
|
|
@@ -56,7 +58,12 @@ class Builder {
|
|
|
56
58
|
try {
|
|
57
59
|
console.log()
|
|
58
60
|
console.log(chalk.green("NPM开始发布,请稍后"));
|
|
59
|
-
exec(`npm publish --registry https://registry.npmjs.org
|
|
61
|
+
exec(`npm publish --registry https://registry.npmjs.org`)
|
|
62
|
+
try {
|
|
63
|
+
postParams(`https://npm.taobao.org/sync/${projectConfig.name}`)
|
|
64
|
+
} catch (error) {
|
|
65
|
+
|
|
66
|
+
}
|
|
60
67
|
console.log()
|
|
61
68
|
console.log(chalk.green("NPM发布完成"));
|
|
62
69
|
return true
|