@nrwl/linter 13.8.7 → 13.8.8-beta.0
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": "@nrwl/linter",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.8-beta.0",
|
|
4
4
|
"description": "Lint Plugin for Nx",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
37
|
-
"@nrwl/devkit": "13.8.
|
|
38
|
-
"@nrwl/jest": "13.8.
|
|
37
|
+
"@nrwl/devkit": "13.8.8-beta.0",
|
|
38
|
+
"@nrwl/jest": "13.8.8-beta.0",
|
|
39
39
|
"tmp": "~0.2.1",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { Task, TaskGraph } from '@nrwl/devkit';
|
|
1
|
+
import { ProjectGraph, Task, TaskGraph, WorkspaceJsonConfiguration } from '@nrwl/devkit';
|
|
2
2
|
import { Hash, Hasher } from '@nrwl/workspace/src/core/hasher/hasher';
|
|
3
|
-
export default function run(task: Task,
|
|
3
|
+
export default function run(task: Task, context: {
|
|
4
|
+
hasher: Hasher;
|
|
5
|
+
projectGraph: ProjectGraph;
|
|
6
|
+
taskGraph: TaskGraph;
|
|
7
|
+
workspaceConfig: WorkspaceJsonConfiguration;
|
|
8
|
+
}): Promise<Hash>;
|
|
@@ -1,44 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
const workspace_1 = require("@nrwl/tao/src/shared/workspace");
|
|
6
|
-
const project_graph_1 = require("@nrwl/workspace/src/core/project-graph");
|
|
7
|
-
function run(task, taskGraph, hasher) {
|
|
4
|
+
function run(task, context) {
|
|
8
5
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
9
6
|
if (task.overrides['hasTypeAwareRules'] === true) {
|
|
10
|
-
return hasher.hashTaskWithDepsAndContext(task);
|
|
7
|
+
return context.hasher.hashTaskWithDepsAndContext(task);
|
|
11
8
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// do nothing, if project graph is unavailable we fallback to using all projects
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
const projectGraph = global.projectGraph;
|
|
21
|
-
const command = hasher.hashCommand(task);
|
|
22
|
-
const sources = yield hasher.hashSource(task);
|
|
23
|
-
const workspace = new workspace_1.Workspaces(app_root_1.appRootPath).readWorkspaceConfiguration();
|
|
24
|
-
const deps = projectGraph
|
|
25
|
-
? allDeps(task.id, taskGraph, projectGraph)
|
|
26
|
-
: Object.keys(workspace.projects);
|
|
27
|
-
const tags = hasher.hashArray(deps.map((d) => (workspace.projects[d].tags || []).join('|')));
|
|
28
|
-
const context = yield hasher.hashContext();
|
|
9
|
+
const command = context.hasher.hashCommand(task);
|
|
10
|
+
const source = yield context.hasher.hashSource(task);
|
|
11
|
+
const deps = allDeps(task.id, context.taskGraph, context.projectGraph);
|
|
12
|
+
const tags = context.hasher.hashArray(deps.map((d) => (context.workspaceConfig.projects[d].tags || []).join('|')));
|
|
13
|
+
const taskContext = yield context.hasher.hashContext();
|
|
29
14
|
return {
|
|
30
|
-
value: hasher.hashArray([
|
|
15
|
+
value: context.hasher.hashArray([
|
|
31
16
|
command,
|
|
32
|
-
|
|
17
|
+
source,
|
|
33
18
|
tags,
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
taskContext.implicitDeps.value,
|
|
20
|
+
taskContext.runtime.value,
|
|
36
21
|
]),
|
|
37
22
|
details: {
|
|
38
23
|
command,
|
|
39
|
-
nodes: { [task.target.project]:
|
|
40
|
-
implicitDeps:
|
|
41
|
-
runtime:
|
|
24
|
+
nodes: { [task.target.project]: source, tags },
|
|
25
|
+
implicitDeps: taskContext.implicitDeps.files,
|
|
26
|
+
runtime: taskContext.runtime.runtime,
|
|
42
27
|
},
|
|
43
28
|
};
|
|
44
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/executors/eslint/hasher.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/executors/eslint/hasher.ts"],"names":[],"mappings":";;;AAQA,SAA8B,GAAG,CAC/B,IAAU,EACV,OAKC;;QAED,IAAI,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,KAAK,IAAI,EAAE;YAChD,OAAO,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;SACxD;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;QACvE,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CACnC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC5E,CAAC;QACF,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QACvD,OAAO;YACL,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;gBAC9B,OAAO;gBACP,MAAM;gBACN,IAAI;gBACJ,WAAW,CAAC,YAAY,CAAC,KAAK;gBAC9B,WAAW,CAAC,OAAO,CAAC,KAAK;aAC1B,CAAC;YACF,OAAO,EAAE;gBACP,OAAO;gBACP,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE;gBAC9C,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK;gBAC5C,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO;aACrC;SACF,CAAC;IACJ,CAAC;CAAA;AAnCD,sBAmCC;AAED,SAAS,OAAO,CACd,MAAc,EACd,SAAoB,EACpB,YAA0B;IAE1B,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;IACvD,MAAM,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC;SACpD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SAC7C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.eslintConfigPrettierVersion = exports.eslintVersion = exports.typescriptESLintVersion = exports.buildAngularVersion = exports.tslintToEslintConfigVersion = exports.tslintVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.8.
|
|
4
|
+
exports.nxVersion = '13.8.8-beta.0';
|
|
5
5
|
exports.tslintVersion = '~6.1.0';
|
|
6
6
|
exports.tslintToEslintConfigVersion = '^2.4.0';
|
|
7
7
|
exports.buildAngularVersion = '~13.2.0';
|