@mono-labs/cli 0.0.197 → 0.0.198
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/dist/project/index.js +2 -2
- package/package.json +1 -1
package/dist/project/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import path from 'node:path';
|
|
|
5
5
|
* Works for Yarn/npm workspaces via package.json "workspaces".
|
|
6
6
|
* Also recognizes common mono-repo markers as fallback.
|
|
7
7
|
*/
|
|
8
|
-
export function detectWorkspaceAndConfigPath(startDir = process.cwd(), configFileName = 'app.
|
|
8
|
+
export function detectWorkspaceAndConfigPath(startDir = process.cwd(), configFileName = 'app.mono.json') {
|
|
9
9
|
const cwd = path.resolve(startDir);
|
|
10
10
|
const isWorkspaceRootDir = (dir) => {
|
|
11
11
|
// 1) package.json workspaces
|
|
@@ -50,7 +50,7 @@ export function detectWorkspaceAndConfigPath(startDir = process.cwd(), configFil
|
|
|
50
50
|
return { cwd, workspaceRoot, isWorkspaceRoot, configDir, configPath };
|
|
51
51
|
}
|
|
52
52
|
export function loadAppConfig(configType = 'app', startDir = process.cwd()) {
|
|
53
|
-
const fileName = `${configType}.
|
|
53
|
+
const fileName = `${configType}.mono.json`;
|
|
54
54
|
const meta = detectWorkspaceAndConfigPath(startDir, fileName);
|
|
55
55
|
if (!fs.existsSync(meta.configPath)) {
|
|
56
56
|
const where = meta.workspaceRoot ?
|