@cocreate/cli 1.19.3 → 1.19.5

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 CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.19.5](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.19.4...v1.19.5) (2023-04-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([9e61ff1](https://github.com/CoCreate-app/CoCreate-cli/commit/9e61ff15df11b5bfb62d000d64ef23fbace499fe))
7
+
8
+ ## [1.19.4](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.19.3...v1.19.4) (2023-04-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * renamed domains to hosts ([50f3e8b](https://github.com/CoCreate-app/CoCreate-cli/commit/50f3e8b3b8791f4965185e6cea573ecd7415fd46))
14
+ * renamed domans to hosts ([74d952f](https://github.com/CoCreate-app/CoCreate-cli/commit/74d952fd7e90f9fb4f027874293de6df64962dc4))
15
+ * replaceAll single quote with double quotes ([faf067e](https://github.com/CoCreate-app/CoCreate-cli/commit/faf067e2801e0243e249ddb193dc679a6b04f4c0))
16
+
1
17
  ## [1.19.3](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.19.2...v1.19.3) (2023-03-30)
2
18
 
3
19
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
3
  "organization_id": "5ff747727005da1c272740ab",
4
+ "apiKey": "2061acef-0451-4545-f754-60cf8160",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
  "sources": [
@@ -12,7 +12,7 @@ module.exports = {
12
12
  "name": "index.html",
13
13
  "path": "/docs/cli/index.html",
14
14
  "src": "{{./docs/index.html}}",
15
- "domains": [
15
+ "hosts": [
16
16
  "*",
17
17
  "general.cocreate.app"
18
18
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.19.3",
3
+ "version": "1.19.5",
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",
@@ -72,8 +72,8 @@
72
72
  "webpack-log": "^3.0.1"
73
73
  },
74
74
  "dependencies": {
75
- "@cocreate/docs": "^1.6.2",
76
- "@cocreate/hosting": "^1.8.2",
75
+ "@cocreate/docs": "^1.6.4",
76
+ "@cocreate/hosting": "^1.8.4",
77
77
  "colors": "latest",
78
78
  "glob": "^7.1.7",
79
79
  "got": "latest",
package/src/coc.js CHANGED
@@ -22,7 +22,7 @@ for (let option of options) {
22
22
  }
23
23
 
24
24
  command = argv
25
- .map((part) => part.match(/ |'|"/) ? `'${part.replace(/'/,'\\\'')}'` : part)
25
+ .map((part) => part.match(/ |'|"/) ? `'${part.replace(/'/, '\\\'')}'` : part)
26
26
  .join(" ");
27
27
 
28
28
  function getRepositories(path) {
@@ -61,9 +61,9 @@ if (config['c'] && fs.existsSync(config['c'])) {
61
61
  console.error(`a configuration file can not be found`.red);
62
62
  process.exit(1);
63
63
  }
64
- config = {hideMessage: false, ...config };
64
+ config = { hideMessage: false, ...config };
65
65
 
66
- (async() => {
66
+ (async () => {
67
67
  repos = await addMeta(repos, [], directory)
68
68
  let failed = await execute(command, repos, config);
69
69
  if (failed) {
@@ -27,8 +27,8 @@ function update(MdPath) {
27
27
 
28
28
  let fileContent = `module.exports = {
29
29
  "config": {
30
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
31
30
  "organization_id": "5ff747727005da1c272740ab",
31
+ "apiKey": "2061acef-0451-4545-f754-60cf8160",
32
32
  "host": "general.cocreate.app"
33
33
  },
34
34
 
@@ -40,7 +40,7 @@ function update(MdPath) {
40
40
  "name": "index.html",
41
41
  "path": "/docs/${name}/index.html",
42
42
  "src": "{{./docs/index.html}}",
43
- "domains": [
43
+ "hosts": [
44
44
  "general.cocreate.app"
45
45
  ],
46
46
  "directory": "/docs/${name}",
package/src/execute.js CHANGED
@@ -22,7 +22,7 @@ module.exports = async function execute(command, repos, config) {
22
22
 
23
23
  } else {
24
24
  let type = command.split(' ')[0]
25
- let args = command.replace(type, '').replace("'", '"').trim()
25
+ let args = command.replace(type, '').replaceAll("'", '"').trim()
26
26
 
27
27
  for (let repo of repos) {
28
28
  try {