@toptal/davinci-monorepo 8.3.8-alpha-fx-5433-stylelint-support-0c714350.8 → 8.3.8-alpha-FX-5419-check-for-nx-ff539ea3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-monorepo",
3
- "version": "8.3.8-alpha-fx-5433-stylelint-support-0c714350.8+0c714350",
3
+ "version": "8.3.8-alpha-FX-5419-check-for-nx-ff539ea3.6+ff539ea3",
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.5.1-alpha-fx-5433-stylelint-support-0c714350.11+0c714350",
30
+ "@toptal/davinci-cli-shared": "2.5.1-alpha-FX-5419-check-for-nx-ff539ea3.9+ff539ea3",
31
31
  "chalk": "^4.1.2",
32
32
  "codeowners": "5.1.1",
33
33
  "dependency-cruiser": "^12.5.0",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "0c71435015464c177686b71e0764c5c9e7d7cff0"
52
+ "gitHead": "ff539ea36b6c5c80df5115f09224a27007c0a99d"
53
53
  }
@@ -27,15 +27,18 @@ const isPNPMWorkspace = () => {
27
27
  */
28
28
  const checkIfMonorepo = () => {
29
29
  const lernaIsAvailable = yarnCommandExists('lerna --version')
30
+ const nxIsAvailable = yarnCommandExists('nx --version')
30
31
  const pnpmWorkspaceExists = isPNPMWorkspace()
31
32
  const yarnWorkspaceExists = yarnCommandExists('workspaces info')
32
33
  const workspacesExist = yarnWorkspaceExists || pnpmWorkspaceExists
33
34
  const isMonorepo =
34
- (lernaIsAvailable && yarnWorkspaceExists) || pnpmWorkspaceExists
35
+ ((lernaIsAvailable || nxIsAvailable) && yarnWorkspaceExists) ||
36
+ pnpmWorkspaceExists
35
37
 
36
38
  return {
37
39
  isMonorepo,
38
40
  lernaIsAvailable,
41
+ nxIsAvailable,
39
42
  workspacesExist,
40
43
  pnpmWorkspaceExists,
41
44
  }