@mono-labs/cli 0.0.43 → 0.0.45

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.
@@ -11,10 +11,19 @@ export function executeCommandsIfWorkspaceAction(commands = [], action) {
11
11
  .map((line) => JSON.parse(line))
12
12
  .filter((obj) => obj !== '.');
13
13
 
14
+ const workspaces = execSync('yarn workspaces list --json', {
15
+ encoding: 'utf8',
16
+ })
17
+ .trim()
18
+ .split('\n')
19
+ .map((line) => JSON.parse(line)); // { name, location }
20
+
21
+ console.log('workspaces', workspaces);
22
+
14
23
  console.log(result.map((w) => w.location)); // list of workspace paths
15
24
  const rootJson = getRootJson();
16
25
  const workspacesList = (rootJson.workspaces || []).map((item) =>
17
- item.replace(/[\.\/\*]/, '')
26
+ item.replace(/[\.\/\*]/g, '')
18
27
  );
19
28
 
20
29
  console.log('workspacesList', workspacesList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",