@cocreate/cli 1.47.1 → 1.47.3
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 +14 -0
- package/CoCreate.config.js +0 -4
- package/package.json +1 -1
- package/src/commands/upload.js +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.47.3](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.2...v1.47.3) (2024-04-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* getConfig and node_moules/ exclusion ([468b15f](https://github.com/CoCreate-app/CoCreate-cli/commit/468b15f047b81c0b0b9700a48fe4c548af3aad55))
|
|
7
|
+
|
|
8
|
+
## [1.47.2](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.1...v1.47.2) (2024-01-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* resize-observer removed as its logic is now handled by CoCreate-events ([f4a474c](https://github.com/CoCreate-app/CoCreate-cli/commit/f4a474cd56703f1b0a0f3b1f5fb99679ce7b2b7c))
|
|
14
|
+
|
|
1
15
|
## [1.47.1](https://github.com/CoCreate-app/CoCreate-cli/compare/v1.47.0...v1.47.1) (2024-01-11)
|
|
2
16
|
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
|
@@ -205,10 +205,6 @@ module.exports = {
|
|
|
205
205
|
"path": "../CoCreate-resize",
|
|
206
206
|
"repo": "github.com/CoCreate-app/CoCreate-resize.git"
|
|
207
207
|
},
|
|
208
|
-
{
|
|
209
|
-
"path": "../CoCreate-resize-observer",
|
|
210
|
-
"repo": "github.com/CoCreate-app/CoCreate-resize-observer.git"
|
|
211
|
-
},
|
|
212
208
|
{
|
|
213
209
|
"path": "../CoCreate-rich-text",
|
|
214
210
|
"repo": "github.com/CoCreate-app/CoCreate-rich-text.git"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cli",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.3",
|
|
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",
|
package/src/commands/upload.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
74
|
+
if (!filePath.includes('node_modules/')) {
|
|
75
|
+
configPath = findClosestConfig(filePath)
|
|
75
76
|
if (configPath) {
|
|
76
|
-
|
|
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) {
|