@nx/js 17.0.0-beta.1 → 17.0.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/executors.json +0 -22
- package/generators.json +0 -35
- package/package.json +4 -6
- package/src/executors/swc/schema.json +0 -13
- package/src/executors/tsc/schema.json +0 -13
- package/src/generators/convert-to-swc/convert-to-swc.d.ts +0 -1
- package/src/generators/convert-to-swc/convert-to-swc.js +1 -2
- package/src/generators/init/init.d.ts +0 -1
- package/src/generators/init/init.js +1 -2
- package/src/generators/library/library.d.ts +0 -1
- package/src/generators/library/library.js +1 -2
- package/src/generators/setup-build/generator.d.ts +0 -1
- package/src/generators/setup-build/generator.js +1 -2
- package/src/generators/setup-verdaccio/generator.d.ts +0 -1
- package/src/generators/setup-verdaccio/generator.js +1 -2
- package/src/migrations/update-17-0-0/remove-deprecated-build-options.d.ts +6 -0
- package/src/migrations/update-17-0-0/remove-deprecated-build-options.js +29 -0
- package/src/utils/buildable-libs-utils.js +13 -22
- package/src/utils/package-json/update-package-json.js +4 -7
- package/src/utils/schema.d.ts +2 -14
- package/src/executors/node/compat.d.ts +0 -2
- package/src/executors/node/compat.js +0 -5
- package/src/executors/swc/compat.d.ts +0 -2
- package/src/executors/swc/compat.js +0 -5
- package/src/executors/tsc/compat.d.ts +0 -2
- package/src/executors/tsc/compat.js +0 -5
- package/src/executors/verdaccio/compat.d.ts +0 -2
- package/src/executors/verdaccio/compat.js +0 -5
package/executors.json
CHANGED
|
@@ -28,27 +28,5 @@
|
|
|
28
28
|
"schema": "./src/executors/verdaccio/schema.json",
|
|
29
29
|
"description": "Start local registry with verdaccio"
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
"builders": {
|
|
33
|
-
"tsc": {
|
|
34
|
-
"implementation": "./src/executors/tsc/compat",
|
|
35
|
-
"schema": "./src/executors/tsc/schema.json",
|
|
36
|
-
"description": "Build a project using TypeScript."
|
|
37
|
-
},
|
|
38
|
-
"swc": {
|
|
39
|
-
"implementation": "./src/executors/swc/compat",
|
|
40
|
-
"schema": "./src/executors/swc/schema.json",
|
|
41
|
-
"description": "Build a project using SWC."
|
|
42
|
-
},
|
|
43
|
-
"node": {
|
|
44
|
-
"implementation": "./src/executors/node/compat",
|
|
45
|
-
"schema": "./src/executors/node/schema.json",
|
|
46
|
-
"description": "Execute a Node application."
|
|
47
|
-
},
|
|
48
|
-
"verdaccio": {
|
|
49
|
-
"implementation": "./src/executors/verdaccio/compat",
|
|
50
|
-
"schema": "./src/executors/verdaccio/schema.json",
|
|
51
|
-
"description": "Start local registry with verdaccio"
|
|
52
|
-
}
|
|
53
31
|
}
|
|
54
32
|
}
|
package/generators.json
CHANGED
|
@@ -1,41 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx/js",
|
|
3
3
|
"version": "0.1",
|
|
4
|
-
"schematics": {
|
|
5
|
-
"library": {
|
|
6
|
-
"factory": "./src/generators/library/library#librarySchematic",
|
|
7
|
-
"schema": "./src/generators/library/schema.json",
|
|
8
|
-
"aliases": ["lib"],
|
|
9
|
-
"x-type": "library",
|
|
10
|
-
"description": "Create a library."
|
|
11
|
-
},
|
|
12
|
-
"init": {
|
|
13
|
-
"factory": "./src/generators/init/init#initSchematic",
|
|
14
|
-
"schema": "./src/generators/init/schema.json",
|
|
15
|
-
"x-type": "init",
|
|
16
|
-
"description": "Initialize a TS/JS workspace.",
|
|
17
|
-
"hidden": true
|
|
18
|
-
},
|
|
19
|
-
"convert-to-swc": {
|
|
20
|
-
"factory": "./src/generators/convert-to-swc/convert-to-swc#convertToSwcSchematic",
|
|
21
|
-
"schema": "./src/generators/convert-to-swc/schema.json",
|
|
22
|
-
"aliases": ["swc"],
|
|
23
|
-
"x-type": "library",
|
|
24
|
-
"description": "Convert a TypeScript library to compile with SWC."
|
|
25
|
-
},
|
|
26
|
-
"setup-verdaccio": {
|
|
27
|
-
"factory": "./src/generators/setup-verdaccio/generator#setupVerdaccioSchematic",
|
|
28
|
-
"schema": "./src/generators/setup-verdaccio/schema.json",
|
|
29
|
-
"alias": ["verdaccio"],
|
|
30
|
-
"description": "Setup Verdaccio for local package management."
|
|
31
|
-
},
|
|
32
|
-
"setup-build": {
|
|
33
|
-
"factory": "./src/generators/setup-build/generator#setupBuildSchematic",
|
|
34
|
-
"schema": "./src/generators/setup-build/schema.json",
|
|
35
|
-
"alias": ["build"],
|
|
36
|
-
"description": "setup-build generator"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
4
|
"generators": {
|
|
40
5
|
"library": {
|
|
41
6
|
"factory": "./src/generators/library/library#libraryGeneratorInternal",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,7 @@
|
|
|
28
28
|
"migrations": "./migrations.json"
|
|
29
29
|
},
|
|
30
30
|
"generators": "./generators.json",
|
|
31
|
-
"schematics": "./generators.json",
|
|
32
31
|
"executors": "./executors.json",
|
|
33
|
-
"builders": "./executors.json",
|
|
34
32
|
"dependencies": {
|
|
35
33
|
"@babel/core": "^7.22.9",
|
|
36
34
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -59,9 +57,9 @@
|
|
|
59
57
|
"semver": "7.5.3",
|
|
60
58
|
"source-map-support": "0.5.19",
|
|
61
59
|
"tslib": "^2.3.0",
|
|
62
|
-
"@nx/devkit": "17.0.0-beta.
|
|
63
|
-
"@nx/workspace": "17.0.0-beta.
|
|
64
|
-
"@nrwl/js": "17.0.0-beta.
|
|
60
|
+
"@nx/devkit": "17.0.0-beta.4",
|
|
61
|
+
"@nx/workspace": "17.0.0-beta.4",
|
|
62
|
+
"@nrwl/js": "17.0.0-beta.4"
|
|
65
63
|
},
|
|
66
64
|
"peerDependencies": {
|
|
67
65
|
"verdaccio": "^5.0.4"
|
|
@@ -84,19 +84,6 @@
|
|
|
84
84
|
],
|
|
85
85
|
"hidden": true
|
|
86
86
|
},
|
|
87
|
-
"updateBuildableProjectDepsInPackageJson": {
|
|
88
|
-
"type": "boolean",
|
|
89
|
-
"description": "Whether to update the buildable project dependencies in the build output package.json.",
|
|
90
|
-
"default": false,
|
|
91
|
-
"x-deprecated": "Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17."
|
|
92
|
-
},
|
|
93
|
-
"buildableProjectDepsInPackageJsonType": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"description": "When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.",
|
|
96
|
-
"enum": ["dependencies", "peerDependencies"],
|
|
97
|
-
"default": "peerDependencies",
|
|
98
|
-
"x-deprecated": "Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17."
|
|
99
|
-
},
|
|
100
87
|
"external": {
|
|
101
88
|
"description": "A list projects to be treated as external. This feature is experimental",
|
|
102
89
|
"oneOf": [
|
|
@@ -72,19 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"x-priority": "important"
|
|
74
74
|
},
|
|
75
|
-
"updateBuildableProjectDepsInPackageJson": {
|
|
76
|
-
"type": "boolean",
|
|
77
|
-
"description": "Whether to update the buildable project dependencies in the build output package.json.",
|
|
78
|
-
"default": false,
|
|
79
|
-
"x-deprecated": "Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17."
|
|
80
|
-
},
|
|
81
|
-
"buildableProjectDepsInPackageJsonType": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"description": "When `updateBuildableProjectDepsInPackageJson` is `true`, this adds dependencies to either `peerDependencies` or `dependencies`.",
|
|
84
|
-
"enum": ["dependencies", "peerDependencies"],
|
|
85
|
-
"default": "peerDependencies",
|
|
86
|
-
"x-deprecated": "Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17."
|
|
87
|
-
},
|
|
88
75
|
"external": {
|
|
89
76
|
"description": "A list projects to be treated as external. This feature is experimental",
|
|
90
77
|
"oneOf": [
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
import { ConvertToSwcGeneratorSchema } from './schema';
|
|
3
3
|
export declare function convertToSwcGenerator(tree: Tree, schema: ConvertToSwcGeneratorSchema): Promise<() => void>;
|
|
4
4
|
export default convertToSwcGenerator;
|
|
5
|
-
export declare const convertToSwcSchematic: (generatorOptions: ConvertToSwcGeneratorSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.convertToSwcGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const add_swc_config_1 = require("../../utils/swc/add-swc-config");
|
|
@@ -57,4 +57,3 @@ function checkSwcDependencies(tree, projectConfiguration) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
exports.default = convertToSwcGenerator;
|
|
60
|
-
exports.convertToSwcSchematic = (0, devkit_1.convertNxGenerator)(convertToSwcGenerator);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { InitSchema } from './schema';
|
|
3
3
|
export declare function initGenerator(tree: Tree, schema: InitSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default initGenerator;
|
|
5
|
-
export declare const initSchematic: (generatorOptions: InitSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.initGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const semver_1 = require("@nx/devkit/src/utils/semver");
|
|
6
6
|
const package_json_1 = require("nx/src/utils/package-json");
|
|
@@ -111,4 +111,3 @@ async function initGenerator(tree, schema) {
|
|
|
111
111
|
}
|
|
112
112
|
exports.initGenerator = initGenerator;
|
|
113
113
|
exports.default = initGenerator;
|
|
114
|
-
exports.initSchematic = (0, devkit_1.convertNxGenerator)(initGenerator);
|
|
@@ -14,4 +14,3 @@ export interface NormalizedSchema extends LibraryGeneratorSchema {
|
|
|
14
14
|
export type AddLintOptions = Pick<NormalizedSchema, 'name' | 'linter' | 'projectRoot' | 'unitTestRunner' | 'js' | 'setParserOptionsProject' | 'rootProject' | 'bundler'>;
|
|
15
15
|
export declare function addLint(tree: Tree, options: AddLintOptions): Promise<GeneratorCallback>;
|
|
16
16
|
export default libraryGenerator;
|
|
17
|
-
export declare const librarySchematic: (generatorOptions: LibraryGeneratorSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.addLint = exports.libraryGeneratorInternal = exports.libraryGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
6
|
const ts_config_1 = require("../../utils/typescript/ts-config");
|
|
@@ -595,4 +595,3 @@ function determineEntryFields(options) {
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
exports.default = libraryGenerator;
|
|
598
|
-
exports.librarySchematic = (0, devkit_1.convertNxGenerator)(libraryGenerator);
|
|
@@ -2,4 +2,3 @@ import { type GeneratorCallback, type Tree } from '@nx/devkit';
|
|
|
2
2
|
import { SetupBuildGeneratorSchema } from './schema';
|
|
3
3
|
export declare function setupBuildGenerator(tree: Tree, options: SetupBuildGeneratorSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default setupBuildGenerator;
|
|
5
|
-
export declare const setupBuildSchematic: (generatorOptions: SetupBuildGeneratorSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.setupBuildGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const add_swc_config_1 = require("../../utils/swc/add-swc-config");
|
|
6
6
|
const add_swc_dependencies_1 = require("../../utils/swc/add-swc-dependencies");
|
|
@@ -137,4 +137,3 @@ async function setupBuildGenerator(tree, options) {
|
|
|
137
137
|
}
|
|
138
138
|
exports.setupBuildGenerator = setupBuildGenerator;
|
|
139
139
|
exports.default = setupBuildGenerator;
|
|
140
|
-
exports.setupBuildSchematic = (0, devkit_1.convertNxGenerator)(setupBuildGenerator);
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
import { SetupVerdaccioGeneratorSchema } from './schema';
|
|
3
3
|
export declare function setupVerdaccio(tree: Tree, options: SetupVerdaccioGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
4
4
|
export default setupVerdaccio;
|
|
5
|
-
export declare const setupVerdaccioSchematic: (generatorOptions: SetupVerdaccioGeneratorSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.setupVerdaccio = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const versions_1 = require("../../utils/versions");
|
|
@@ -54,4 +54,3 @@ async function setupVerdaccio(tree, options) {
|
|
|
54
54
|
}
|
|
55
55
|
exports.setupVerdaccio = setupVerdaccio;
|
|
56
56
|
exports.default = setupVerdaccio;
|
|
57
|
-
exports.setupVerdaccioSchematic = (0, devkit_1.convertNxGenerator)(setupVerdaccio);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
/**
|
|
5
|
+
* Removes deprecated
|
|
6
|
+
* @param tree
|
|
7
|
+
*/
|
|
8
|
+
async function default_1(tree) {
|
|
9
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
10
|
+
for (const [projectName, projectConfig] of projects) {
|
|
11
|
+
let shouldUpdate = false;
|
|
12
|
+
if (!projectConfig.targets)
|
|
13
|
+
continue;
|
|
14
|
+
for (const target of Object.values(projectConfig.targets)) {
|
|
15
|
+
if (target.executor.startsWith('@nx/') &&
|
|
16
|
+
('buildableProjectDepsInPackageJsonType' in target.options ||
|
|
17
|
+
'updateBuildableProjectDepsInPackageJson' in target.options)) {
|
|
18
|
+
delete target.options['buildableProjectDepsInPackageJsonType'];
|
|
19
|
+
delete target.options['updateBuildableProjectDepsInPackageJson'];
|
|
20
|
+
shouldUpdate = true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (shouldUpdate) {
|
|
24
|
+
(0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfig);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
28
|
+
}
|
|
29
|
+
exports.default = default_1;
|
|
@@ -49,13 +49,10 @@ function calculateProjectDependencies(projGraph, root, projectName, targetName,
|
|
|
49
49
|
? (0, devkit_1.readJsonFile)(libPackageJsonPath).name // i.e. @workspace/mylib
|
|
50
50
|
: dep,
|
|
51
51
|
outputs: (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
52
|
-
|
|
53
|
-
target:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
configuration: configurationName,
|
|
57
|
-
},
|
|
58
|
-
}, depNode),
|
|
52
|
+
project: projectName,
|
|
53
|
+
target: targetName,
|
|
54
|
+
configuration: configurationName,
|
|
55
|
+
}, {}, depNode),
|
|
59
56
|
node: depNode,
|
|
60
57
|
};
|
|
61
58
|
}
|
|
@@ -128,7 +125,7 @@ function calculateDependenciesFromTaskGraph(taskGraph, projectGraph, root, proje
|
|
|
128
125
|
if (depProjectNode?.type !== 'lib') {
|
|
129
126
|
return null;
|
|
130
127
|
}
|
|
131
|
-
let outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)(depTask, depProjectNode);
|
|
128
|
+
let outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)(depTask.target, depTask.overrides, depProjectNode);
|
|
132
129
|
if (outputs.length === 0) {
|
|
133
130
|
nonBuildableDependencies.push(depTask.target.project);
|
|
134
131
|
continue;
|
|
@@ -305,13 +302,10 @@ exports.updatePaths = updatePaths;
|
|
|
305
302
|
*/
|
|
306
303
|
function updateBuildableProjectPackageJsonDependencies(root, projectName, targetName, configurationName, node, dependencies, typeOfDependency = 'dependencies') {
|
|
307
304
|
const outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
308
|
-
|
|
309
|
-
target:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
configuration: configurationName,
|
|
313
|
-
},
|
|
314
|
-
}, node);
|
|
305
|
+
project: projectName,
|
|
306
|
+
target: targetName,
|
|
307
|
+
configuration: configurationName,
|
|
308
|
+
}, {}, node);
|
|
315
309
|
const packageJsonPath = `${outputs[0]}/package.json`;
|
|
316
310
|
let packageJson;
|
|
317
311
|
let workspacePackageJson;
|
|
@@ -337,13 +331,10 @@ function updateBuildableProjectPackageJsonDependencies(root, projectName, target
|
|
|
337
331
|
let depVersion;
|
|
338
332
|
if (entry.node.type === 'lib') {
|
|
339
333
|
const outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
340
|
-
|
|
341
|
-
target:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
configuration: configurationName,
|
|
345
|
-
},
|
|
346
|
-
}, entry.node);
|
|
334
|
+
project: projectName,
|
|
335
|
+
target: targetName,
|
|
336
|
+
configuration: configurationName,
|
|
337
|
+
}, {}, entry.node);
|
|
347
338
|
const depPackageJsonPath = (0, path_1.join)(root, outputs[0], 'package.json');
|
|
348
339
|
depVersion = (0, devkit_1.readJsonFile)(depPackageJsonPath).version;
|
|
349
340
|
packageJson[typeOfDependency][packageName] = depVersion;
|
|
@@ -79,13 +79,10 @@ function addMissingDependencies(packageJson, { projectName, targetName, configur
|
|
|
79
79
|
!packageJson.devDependencies?.[packageName] &&
|
|
80
80
|
!packageJson.peerDependencies?.[packageName]) {
|
|
81
81
|
const outputs = (0, devkit_1.getOutputsForTargetAndConfiguration)({
|
|
82
|
-
|
|
83
|
-
target:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
configuration: configurationName,
|
|
87
|
-
},
|
|
88
|
-
}, entry.node);
|
|
82
|
+
project: projectName,
|
|
83
|
+
target: targetName,
|
|
84
|
+
configuration: configurationName,
|
|
85
|
+
}, {}, entry.node);
|
|
89
86
|
const depPackageJsonPath = (0, path_1.join)(root, outputs[0], 'package.json');
|
|
90
87
|
if ((0, fs_1.existsSync)(depPackageJsonPath)) {
|
|
91
88
|
const version = (0, devkit_1.readJsonFile)(depPackageJsonPath).version;
|
package/src/utils/schema.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
|
2
|
-
// nx-ignore-next-line
|
|
3
|
-
const { Linter } = require('@nx/linter'); // use require to import to avoid circular dependency
|
|
4
2
|
import type { AssetGlob, FileInputOutput } from './assets/assets';
|
|
5
3
|
import { TransformerEntry } from './typescript/types';
|
|
4
|
+
// nx-ignore-next-line
|
|
5
|
+
const { Linter } = require('@nx/linter'); // use require to import to avoid circular dependency
|
|
6
6
|
|
|
7
7
|
export type Compiler = 'tsc' | 'swc';
|
|
8
8
|
export type Bundler = 'swc' | 'tsc' | 'rollup' | 'vite' | 'esbuild' | 'none';
|
|
@@ -46,18 +46,6 @@ export interface ExecutorOptions {
|
|
|
46
46
|
watch: boolean;
|
|
47
47
|
clean?: boolean;
|
|
48
48
|
transformers: TransformerEntry[];
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated Configure the project to use the `@nx/dependency-checks` ESLint
|
|
51
|
-
* rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks).
|
|
52
|
-
* It will be removed in v17.
|
|
53
|
-
*/
|
|
54
|
-
updateBuildableProjectDepsInPackageJson?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Configure the project to use the `@nx/dependency-checks` ESLint
|
|
57
|
-
* rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks).
|
|
58
|
-
* It will be removed in v17.
|
|
59
|
-
*/
|
|
60
|
-
buildableProjectDepsInPackageJsonType?: 'dependencies' | 'peerDependencies';
|
|
61
49
|
external?: 'all' | 'none' | string[];
|
|
62
50
|
externalBuildTargets?: string[];
|
|
63
51
|
generateLockfile?: boolean;
|