@nx/eslint-plugin 21.3.0-beta.2 → 21.3.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint-plugin",
3
- "version": "21.3.0-beta.2",
3
+ "version": "21.3.0-beta.4",
4
4
  "private": false,
5
5
  "description": "The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
6
6
  "repository": {
@@ -34,8 +34,8 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "21.3.0-beta.2",
38
- "@nx/js": "21.3.0-beta.2",
37
+ "@nx/devkit": "21.3.0-beta.4",
38
+ "@nx/js": "21.3.0-beta.4",
39
39
  "@phenomnomnominal/tsquery": "~5.0.1",
40
40
  "@typescript-eslint/type-utils": "^8.0.0",
41
41
  "@typescript-eslint/utils": "^8.0.0",
@@ -5,6 +5,7 @@ exports.getBarrelEntryPointProjectNode = getBarrelEntryPointProjectNode;
5
5
  exports.getRelativeImportPath = getRelativeImportPath;
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const js_1 = require("@nx/js");
8
+ const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
9
  const type_utils_1 = require("@typescript-eslint/type-utils");
9
10
  const fs_1 = require("fs");
10
11
  const path_1 = require("path");
@@ -59,8 +60,9 @@ function getBarrelEntryPointProjectNode(projectNode) {
59
60
  .filter((entry) => {
60
61
  const sourceFolderPaths = tsConfigBase.compilerOptions.paths[entry];
61
62
  return sourceFolderPaths.some((sourceFolderPath) => {
62
- return (sourceFolderPath === projectNode.data.sourceRoot ||
63
- sourceFolderPath.indexOf(`${projectNode.data.sourceRoot}/`) === 0);
63
+ const sourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(projectNode.data);
64
+ return (sourceFolderPath === sourceRoot ||
65
+ sourceFolderPath.indexOf(`${sourceRoot}/`) === 0);
64
66
  });
65
67
  })
66
68
  .map((entry) => tsConfigBase.compilerOptions.paths[entry].map((x) => ({