@cocreate/cli
Advanced tools
Comparing version 1.47.2 to 1.47.3
{ | ||
"name": "@cocreate/cli", | ||
"version": "1.47.2", | ||
"version": "1.47.3", | ||
"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,0 +5,0 @@ "keywords": [ |
@@ -35,3 +35,3 @@ const file = require('@cocreate/file') | ||
} else { | ||
console.log('Failed to read or parse CoCreate.config.js.'); | ||
console.log(`Failed to read or parse CoCreate.config.js for file: ${filename}`); | ||
} | ||
@@ -73,8 +73,8 @@ } | ||
async function getConfig(directory, filename = '') { | ||
let config, configPath | ||
const filePath = path.resolve(directory, filename); | ||
if (!filePath.includes('node_modules')) { | ||
const configPath = findClosestConfig(filePath) | ||
if (!filePath.includes('node_modules/')) { | ||
configPath = findClosestConfig(filePath) | ||
if (configPath) { | ||
return { config: require(configPath), configPath, filePath }; | ||
config = require(configPath) | ||
} else { | ||
@@ -85,2 +85,3 @@ console.log('No CoCreate.config file found in parent directories.'); | ||
return { config, configPath, filePath }; | ||
} | ||
@@ -87,0 +88,0 @@ |
Sorry, the diff of this file is too big to display
185408
2207