@mono-labs/cli 0.0.198 → 0.0.199

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.
@@ -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.mono.json') {
8
+ export function detectWorkspaceAndConfigPath(startDir = process.cwd(), configFileName = 'mono.app.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}.mono.json`;
53
+ const fileName = `mono.${configType}.json`;
54
54
  const meta = detectWorkspaceAndConfigPath(startDir, fileName);
55
55
  if (!fs.existsSync(meta.configPath)) {
56
56
  const where = meta.workspaceRoot ?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.198",
3
+ "version": "0.0.199",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@ type WorkspaceDetectResult = {
16
16
  */
17
17
  export function detectWorkspaceAndConfigPath(
18
18
  startDir: string = process.cwd(),
19
- configFileName: string = 'app.mono.json'
19
+ configFileName: string = 'mono.app.json'
20
20
  ): WorkspaceDetectResult {
21
21
  const cwd = path.resolve(startDir);
22
22
 
@@ -100,7 +100,7 @@ export function loadAppConfig<TCustom = unknown, TType extends string = 'app'>(
100
100
  configType: TType = 'app' as TType,
101
101
  startDir: string = process.cwd()
102
102
  ): { config: ResolveConfig<TType, TCustom>; meta: WorkspaceDetectResult } {
103
- const fileName = `${configType}.mono.json`;
103
+ const fileName = `mono.${configType}.json`;
104
104
  const meta = detectWorkspaceAndConfigPath(startDir, fileName);
105
105
 
106
106
  if (!fs.existsSync(meta.configPath)) {