@toptal/davinci-monorepo 8.3.4-alpha-B2-139-fe-update-config-file-to-accept-b-2-in-p-rs-934a3cee.37 → 8.3.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @toptal/davinci-monorepo
2
2
 
3
+ ## 8.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2260](https://github.com/toptal/davinci/pull/2260) [`542bad58`](https://github.com/toptal/davinci/commit/542bad58258a06e420380f55f6c676323d9a3d3d) Thanks [@dmaklygin](https://github.com/dmaklygin)!
8
+ - handle workspaces also as objects in graph-generator
9
+
3
10
  ## 8.3.3
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-monorepo",
3
- "version": "8.3.4-alpha-B2-139-fe-update-config-file-to-accept-b-2-in-p-rs-934a3cee.37+934a3cee",
3
+ "version": "8.3.4",
4
4
  "keywords": [
5
5
  "lint"
6
6
  ],
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@nodelib/fs.walk": "^1.2.6",
29
29
  "@oclif/core": "^1.16.1",
30
- "@toptal/davinci-cli-shared": "2.3.10-alpha-B2-139-fe-update-config-file-to-accept-b-2-in-p-rs-934a3cee.44+934a3cee",
30
+ "@toptal/davinci-cli-shared": "^2.3.9",
31
31
  "chalk": "^4.1.2",
32
32
  "codeowners": "5.1.1",
33
33
  "dependency-cruiser": "^12.5.0",
@@ -48,6 +48,5 @@
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
51
- },
52
- "gitHead": "934a3ceedf8e9a7e79c8979545517b997db17b73"
51
+ }
53
52
  }
@@ -14,7 +14,12 @@ export const createGetPackages = fs => (root, cwd) => {
14
14
  return []
15
15
  }
16
16
 
17
- return pkgJson.workspaces.flatMap(pattern =>
17
+ const patterns =
18
+ pkgJson.workspaces instanceof Array
19
+ ? pkgJson.workspaces
20
+ : Object.values(pkgJson.workspaces).flatMap(patterns => patterns)
21
+
22
+ return patterns.flatMap(pattern =>
18
23
  glob
19
24
  // glob's options.cwd defaults to process.cwd(), it means wherever we
20
25
  // call `getPackages` function the pattern match is executed relative to