@nx/eslint-plugin 23.2.0-beta.0 → 23.2.0-beta.1
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.
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureGlobalProjectGraph = ensureGlobalProjectGraph;
|
|
4
4
|
exports.readProjectGraph = readProjectGraph;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const runtime_lint_utils_1 = require("./runtime-lint-utils");
|
|
7
|
-
const
|
|
8
|
+
const picocolors_1 = tslib_1.__importDefault(require("picocolors"));
|
|
8
9
|
const find_project_for_path_1 = require("nx/src/project-graph/utils/find-project-for-path");
|
|
9
10
|
const configuration_1 = require("nx/src/config/configuration");
|
|
10
11
|
const internal_1 = require("@nx/js/internal");
|
|
@@ -32,8 +33,8 @@ function ensureGlobalProjectGraph(ruleName) {
|
|
|
32
33
|
globalThis.targetProjectLocator = new internal_1.TargetProjectLocator(projectGraph.nodes, projectGraph.externalNodes);
|
|
33
34
|
}
|
|
34
35
|
catch {
|
|
35
|
-
const WARNING_PREFIX = `${
|
|
36
|
-
const RULE_NAME_SUFFIX = `${
|
|
36
|
+
const WARNING_PREFIX = `${picocolors_1.default.reset(picocolors_1.default.yellow('warning'))}`;
|
|
37
|
+
const RULE_NAME_SUFFIX = `${picocolors_1.default.reset(picocolors_1.default.dim(`@nx/${ruleName}`))}`;
|
|
37
38
|
process.stdout
|
|
38
39
|
.write(`${WARNING_PREFIX} No cached ProjectGraph is available. The rule will be skipped.
|
|
39
40
|
If you encounter this error as part of running standard \`nx\` commands then please open an issue on https://github.com/nrwl/nx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/eslint-plugin",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
96
96
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
97
97
|
"@typescript-eslint/utils": "^8.0.0",
|
|
98
|
-
"chalk": "^4.1.0",
|
|
99
98
|
"confusing-browser-globals": "^1.0.9",
|
|
100
99
|
"globals": "^17.0.0",
|
|
101
100
|
"jsonc-eslint-parser": "^2.1.0",
|
|
101
|
+
"picocolors": "^1.1.0",
|
|
102
102
|
"semver": "^7.6.3",
|
|
103
103
|
"tslib": "^2.3.0",
|
|
104
|
-
"@nx/devkit": "23.2.0-beta.
|
|
105
|
-
"@nx/js": "23.2.0-beta.
|
|
104
|
+
"@nx/devkit": "23.2.0-beta.1",
|
|
105
|
+
"@nx/js": "23.2.0-beta.1"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"nx": "23.2.0-beta.
|
|
108
|
+
"nx": "23.2.0-beta.1"
|
|
109
109
|
},
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|