@cocreate/cli 1.13.14 → 1.13.15
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/CHANGELOG.md +7 -0
- package/package.json +3 -3
- package/src/coc.js +3 -1
- package/src/commands/bump.js +23 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.13.15](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.14...v1.13.15) (2022-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* json formating on bump ([6a4f780](https://github.com/CoCreate-app/CoCreate-cli/commit/6a4f78077f85f8fca20fc71fe8c9294ee7f07678))
|
|
7
|
+
|
|
1
8
|
## [1.13.14](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.13.13...v1.13.14) (2022-11-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.15",
|
|
4
4
|
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"webpack-log": "^3.0.1"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@cocreate/docs": "^1.4.
|
|
77
|
-
"@cocreate/hosting": "^1.6.
|
|
76
|
+
"@cocreate/docs": "^1.4.5",
|
|
77
|
+
"@cocreate/hosting": "^1.6.4",
|
|
78
78
|
"colors": "latest",
|
|
79
79
|
"glob": "^7.1.7",
|
|
80
80
|
"got": "latest",
|
package/src/coc.js
CHANGED
|
@@ -99,7 +99,9 @@ let repoFullMeta = repos.map(meta => {
|
|
|
99
99
|
|
|
100
100
|
(async() => {
|
|
101
101
|
if (command == 'bump'){
|
|
102
|
-
|
|
102
|
+
console.log('bumping')
|
|
103
|
+
let predefined = path.resolve(__dirname, 'commands', command + '.js');
|
|
104
|
+
require(predefined)(repos, repos )
|
|
103
105
|
}
|
|
104
106
|
if (command == 'gitConfig'){
|
|
105
107
|
let predefined = path.resolve(__dirname, 'commands', command + '.js');
|
package/src/commands/bump.js
CHANGED
|
@@ -28,6 +28,26 @@ let item = {}
|
|
|
28
28
|
|
|
29
29
|
// })();
|
|
30
30
|
|
|
31
|
+
// module.exports = async function run() {
|
|
32
|
+
// try {
|
|
33
|
+
// for (let [index, name] of nameList.entries()) {
|
|
34
|
+
// getVersions(pathList[index] + '/package.json', `@${name}`)
|
|
35
|
+
// }
|
|
36
|
+
// console.log('bump versions', item)
|
|
37
|
+
|
|
38
|
+
// for (let [index, name] of nameList.entries()) {
|
|
39
|
+
// await bumpVersion(pathList[index] + '/package.json', name)
|
|
40
|
+
// }
|
|
41
|
+
// } catch (err) {
|
|
42
|
+
// failed.push({ name: 'GENERAL', des: err.message })
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// console.log('completed')
|
|
46
|
+
// return failed
|
|
47
|
+
// // process.exit()
|
|
48
|
+
// }
|
|
49
|
+
|
|
50
|
+
|
|
31
51
|
async function run() {
|
|
32
52
|
// let failed = [];
|
|
33
53
|
|
|
@@ -90,8 +110,8 @@ function bumpVersion(filePath, name) {
|
|
|
90
110
|
}
|
|
91
111
|
}
|
|
92
112
|
|
|
93
|
-
let str = JSON.stringify(object)
|
|
94
|
-
let formated = prettier.format(str, { semi: false, parser: "json" });
|
|
113
|
+
// let str = JSON.stringify(object, null, 2)
|
|
114
|
+
// let formated = prettier.format(str, { semi: false, parser: "json" });
|
|
95
115
|
|
|
96
116
|
filePath = filePath.replace('/package.json', '')
|
|
97
117
|
let Path = path.resolve(filePath, 'package.json')
|
|
@@ -99,7 +119,7 @@ function bumpVersion(filePath, name) {
|
|
|
99
119
|
fs.unlinkSync(Path)
|
|
100
120
|
}
|
|
101
121
|
|
|
102
|
-
fs.writeFileSync(Path,
|
|
122
|
+
fs.writeFileSync(Path, JSON.stringify(object, null, 2))
|
|
103
123
|
}
|
|
104
124
|
}
|
|
105
125
|
|