@mono-labs/cli 0.0.42 → 0.0.44

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.
@@ -1,10 +1,6 @@
1
1
  import { execSync } from 'child_process';
2
- import { getRootJson } from '../loadFromRoot';
2
+ import { getRootJson } from '../loadFromRoot.js';
3
3
 
4
- const rootJson = getRootJson();
5
- const workspacesList = (rootJson.workspaces || []).map((item) =>
6
- item.replace(/[\.\/\*]/, '')
7
- );
8
4
  //Run Action List before all script actions
9
5
 
10
6
  export function executeCommandsIfWorkspaceAction(commands = [], action) {
@@ -16,6 +12,10 @@ export function executeCommandsIfWorkspaceAction(commands = [], action) {
16
12
  .filter((obj) => obj !== '.');
17
13
 
18
14
  console.log(result.map((w) => w.location)); // list of workspace paths
15
+ const rootJson = getRootJson();
16
+ const workspacesList = (rootJson.workspaces || []).map((item) =>
17
+ item.replace(/[\.\/\*]/g, '')
18
+ );
19
19
 
20
20
  console.log('workspacesList', workspacesList);
21
21
  // Check if the action is a workspace action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",