@cocreate/cli 1.47.2 → 1.47.4

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,17 @@
1
+ ## [1.47.4](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.3...v1.47.4) (2024-05-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bumped cocreate dependencies ([23445be](https://github.com/CoCreate-app/CoCreate-cli/commit/23445be9cda1c42013e0306976acc56c1c43f519))
7
+
8
+ ## [1.47.3](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.2...v1.47.3) (2024-04-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * getConfig and node_moules/ exclusion ([468b15f](https://github.com/CoCreate-app/CoCreate-cli/commit/468b15f047b81c0b0b9700a48fe4c548af3aad55))
14
+
1
15
  ## [1.47.2](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.1...v1.47.2) (2024-01-30)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cli",
3
- "version": "1.47.2",
3
+ "version": "1.47.4",
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",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@cocreate/acme": "^1.1.3",
59
- "@cocreate/config": "^1.10.0",
60
- "@cocreate/file": "^1.13.0",
59
+ "@cocreate/config": "^1.12.2",
60
+ "@cocreate/file": "^1.17.1",
61
61
  "@cocreate/nginx": "^1.2.0",
62
62
  "glob": "^7.1.7",
63
63
  "prettier": "^2.3.2"
@@ -32,7 +32,7 @@ module.exports = async function upload(directory, args) {
32
32
  if (config) {
33
33
  await file(config, configPath, filePath)
34
34
  } else {
35
- console.log('Failed to read or parse CoCreate.config.js.');
35
+ console.log(`Failed to read or parse CoCreate.config.js for file: ${filename}`);
36
36
  }
37
37
  }
38
38
  });
@@ -69,17 +69,18 @@ module.exports = async function upload(directory, args) {
69
69
  }
70
70
 
71
71
  async function getConfig(directory, filename = '') {
72
+ let config, configPath
72
73
  const filePath = path.resolve(directory, filename);
73
- if (!filePath.includes('node_modules')) {
74
- const configPath = findClosestConfig(filePath)
74
+ if (!filePath.includes('node_modules/')) {
75
+ configPath = findClosestConfig(filePath)
75
76
  if (configPath) {
76
- return { config: require(configPath), configPath, filePath };
77
-
77
+ config = require(configPath)
78
78
  } else {
79
79
  console.log('No CoCreate.config file found in parent directories.');
80
80
  }
81
81
  }
82
82
 
83
+ return { config, configPath, filePath };
83
84
  }
84
85
 
85
86
  function findClosestConfig(filePath) {