@mono-labs/cli 0.0.47 → 0.0.49

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.
@@ -12,18 +12,21 @@ export function executeCommandsIfWorkspaceAction(action) {
12
12
  .filter((obj) => obj !== '.');
13
13
 
14
14
  const workspaces = result.map((w) => w.name);
15
+ const actualAction = action[1] || '';
15
16
 
16
17
  console.log('workspaces', workspaces);
17
18
  console.log('action', action);
18
- console.log('split-action', action.split('/'));
19
+ console.log('actualAction', actualAction);
19
20
 
20
- console.log(result.map((w) => w.location)); // list of workspace paths
21
21
  const rootJson = getRootJson();
22
22
  const workspacesList = (rootJson.workspaces || []).map((item) =>
23
23
  item.replace(/[\.\/\*]/g, '')
24
24
  );
25
25
 
26
26
  console.log('workspacesList', workspacesList);
27
+
28
+ const filteredResult = result.filter((obj) => obj.name === actualAction);
29
+ console.log('filteredResult', filteredResult);
27
30
  const workingDirectory = './';
28
31
  // Check if the action is a workspace action
29
32
  if (action) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",