@nx/devkit 17.0.0-beta.2 → 17.0.0-beta.5
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/index.d.ts +0 -5
- package/index.js +6 -15
- package/ngcli-adapter.d.ts +1 -1
- package/ngcli-adapter.js +1 -2
- package/nx.js +8 -14
- package/package.json +3 -3
- package/src/generators/artifact-name-and-directory-utils.d.ts +5 -0
- package/src/generators/artifact-name-and-directory-utils.js +22 -9
- package/testing.d.ts +0 -1
- package/testing.js +5 -9
- package/nx-reexports-pre16.d.ts +0 -127
- package/nx-reexports-pre16.js +0 -131
- package/testing-pre16.d.ts +0 -2
- package/testing-pre16.js +0 -9
package/index.d.ts
CHANGED
|
@@ -10,10 +10,5 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module @nx/devkit
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
// TODO(v17): remove this file, we can use the normally generated index.d.ts from index.ts
|
|
15
|
-
|
|
16
|
-
/* eslint-disable @typescript-eslint/no-restricted-imports */
|
|
17
13
|
export * from 'nx/src/devkit-exports';
|
|
18
|
-
|
|
19
14
|
export * from './public-api';
|
package/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* The Nx Devkit is the underlying technology used to customize Nx to support
|
|
3
4
|
* different technologies and custom use-cases. It contains many utility
|
|
@@ -10,18 +11,8 @@
|
|
|
10
11
|
*
|
|
11
12
|
* @module @nx/devkit
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} catch {
|
|
19
|
-
// These are the nx-reexports from before v16
|
|
20
|
-
// TODO(v17): This can be removed once the above is done.
|
|
21
|
-
module.exports = require('./nx-reexports-pre16');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
module.exports = {
|
|
25
|
-
...module.exports,
|
|
26
|
-
...require('./public-api'),
|
|
27
|
-
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const tslib_1 = require("tslib");
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
17
|
+
tslib_1.__exportStar(require("nx/src/devkit-exports"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./public-api"), exports);
|
package/ngcli-adapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @category Ng CLI Adapter
|
|
3
3
|
*/
|
|
4
|
-
export { wrapAngularDevkitSchematic,
|
|
4
|
+
export { wrapAngularDevkitSchematic, mockSchematicsForTesting, NxScopedHost, } from 'nx/src/adapter/ngcli-adapter';
|
package/ngcli-adapter.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NxScopedHost = exports.mockSchematicsForTesting = exports.
|
|
3
|
+
exports.NxScopedHost = exports.mockSchematicsForTesting = exports.wrapAngularDevkitSchematic = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @category Ng CLI Adapter
|
|
6
6
|
*/
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
8
8
|
var ngcli_adapter_1 = require("nx/src/adapter/ngcli-adapter");
|
|
9
9
|
Object.defineProperty(exports, "wrapAngularDevkitSchematic", { enumerable: true, get: function () { return ngcli_adapter_1.wrapAngularDevkitSchematic; } });
|
|
10
|
-
Object.defineProperty(exports, "overrideCollectionResolutionForTesting", { enumerable: true, get: function () { return ngcli_adapter_1.overrideCollectionResolutionForTesting; } });
|
|
11
10
|
Object.defineProperty(exports, "mockSchematicsForTesting", { enumerable: true, get: function () { return ngcli_adapter_1.mockSchematicsForTesting; } });
|
|
12
11
|
Object.defineProperty(exports, "NxScopedHost", { enumerable: true, get: function () { return ngcli_adapter_1.NxScopedHost; } });
|
package/nx.js
CHANGED
|
@@ -5,21 +5,15 @@ exports.requireNx = void 0;
|
|
|
5
5
|
// - import {} from 'nx/src/devkit-exports'
|
|
6
6
|
// - import {} from 'nx/src/devkit-internals'
|
|
7
7
|
function requireNx() {
|
|
8
|
+
let result = { ...require('nx/src/devkit-exports') };
|
|
8
9
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...require('nx/src/devkit-internals'),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
catch { }
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
// Remove in Nx V17, devkit should not support Nx < 16 at that point.
|
|
22
|
-
return require('./nx-reexports-pre16');
|
|
10
|
+
result = {
|
|
11
|
+
...result,
|
|
12
|
+
// Remove in Nx v18, devkit should not support Nx v16.0.2 at that point.
|
|
13
|
+
...require('nx/src/devkit-internals'),
|
|
14
|
+
};
|
|
23
15
|
}
|
|
16
|
+
catch { }
|
|
17
|
+
return result;
|
|
24
18
|
}
|
|
25
19
|
exports.requireNx = requireNx;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/devkit",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more.",
|
|
6
6
|
"repository": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"tmp": "~0.2.1",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"semver": "7.5.3",
|
|
37
|
-
"@nrwl/devkit": "17.0.0-beta.
|
|
37
|
+
"@nrwl/devkit": "17.0.0-beta.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"nx": ">=
|
|
40
|
+
"nx": ">= 16 <= 18"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -14,6 +14,7 @@ export type ArtifactGenerationOptions = {
|
|
|
14
14
|
pascalCaseFile?: boolean;
|
|
15
15
|
project?: string;
|
|
16
16
|
suffix?: string;
|
|
17
|
+
derivedDirectory?: string;
|
|
17
18
|
};
|
|
18
19
|
export type NameAndDirectoryOptions = {
|
|
19
20
|
/**
|
|
@@ -40,3 +41,7 @@ export type NameAndDirectoryOptions = {
|
|
|
40
41
|
export declare function determineArtifactNameAndDirectoryOptions(tree: Tree, options: ArtifactGenerationOptions): Promise<NameAndDirectoryOptions & {
|
|
41
42
|
nameAndDirectoryFormat: NameAndDirectoryFormat;
|
|
42
43
|
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Function for setting cwd during testing
|
|
46
|
+
*/
|
|
47
|
+
export declare function setCwd(path: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.determineArtifactNameAndDirectoryOptions = void 0;
|
|
3
|
+
exports.setCwd = exports.determineArtifactNameAndDirectoryOptions = void 0;
|
|
4
4
|
const enquirer_1 = require("enquirer");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const nx_1 = require("../../nx");
|
|
@@ -9,7 +9,7 @@ const { createProjectRootMappingsFromProjectConfigurations, findProjectForPath,
|
|
|
9
9
|
async function determineArtifactNameAndDirectoryOptions(tree, options) {
|
|
10
10
|
const formats = getNameAndDirectoryOptionFormats(tree, options);
|
|
11
11
|
const format = options.nameAndDirectoryFormat ?? (await determineFormat(formats, options));
|
|
12
|
-
validateResolvedProject(formats[format]?.project, options, formats[format]?.directory);
|
|
12
|
+
validateResolvedProject(tree, formats[format]?.project, options, formats[format]?.directory);
|
|
13
13
|
return {
|
|
14
14
|
...formats[format],
|
|
15
15
|
nameAndDirectoryFormat: format,
|
|
@@ -77,7 +77,7 @@ function getNameAndDirectoryOptionFormats(tree, options) {
|
|
|
77
77
|
name: extractedName,
|
|
78
78
|
});
|
|
79
79
|
if (!options.project) {
|
|
80
|
-
validateResolvedProject(asProvidedOptions.project, options, asProvidedOptions.directory);
|
|
80
|
+
validateResolvedProject(tree, asProvidedOptions.project, options, asProvidedOptions.directory);
|
|
81
81
|
}
|
|
82
82
|
if (options.nameAndDirectoryFormat === 'as-provided') {
|
|
83
83
|
return {
|
|
@@ -142,11 +142,17 @@ function getDerivedOptions(tree, options, asProvidedOptions, extractedDirectory)
|
|
|
142
142
|
const baseDirectory = options.directory
|
|
143
143
|
? (0, names_1.names)(options.directory).fileName
|
|
144
144
|
: joinPathFragments(project.sourceRoot ?? joinPathFragments(project.root, 'src'), project.projectType === 'application' ? 'app' : 'lib', extractedDirectory ?? '');
|
|
145
|
-
const derivedDirectory = options.
|
|
146
|
-
?
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
const derivedDirectory = typeof options.derivedDirectory === 'string'
|
|
146
|
+
? joinPathFragments(project.sourceRoot ?? project.root, options.derivedDirectory, options.flat
|
|
147
|
+
? ''
|
|
148
|
+
: options.pascalCaseDirectory
|
|
149
|
+
? (0, names_1.names)(derivedName).className
|
|
150
|
+
: (0, names_1.names)(derivedName).fileName)
|
|
151
|
+
: options.flat
|
|
152
|
+
? normalizePath(baseDirectory)
|
|
153
|
+
: joinPathFragments(baseDirectory, options.pascalCaseDirectory
|
|
154
|
+
? (0, names_1.names)(derivedName).className
|
|
155
|
+
: (0, names_1.names)(derivedName).fileName);
|
|
150
156
|
if (options.directory &&
|
|
151
157
|
!isDirectoryUnderProjectRoot(derivedDirectory, project.root)) {
|
|
152
158
|
if (!options.nameAndDirectoryFormat) {
|
|
@@ -180,7 +186,7 @@ function getDerivedOptions(tree, options, asProvidedOptions, extractedDirectory)
|
|
|
180
186
|
project: projectName,
|
|
181
187
|
};
|
|
182
188
|
}
|
|
183
|
-
function validateResolvedProject(project, options, normalizedDirectory) {
|
|
189
|
+
function validateResolvedProject(tree, project, options, normalizedDirectory) {
|
|
184
190
|
if (project) {
|
|
185
191
|
return;
|
|
186
192
|
}
|
|
@@ -212,6 +218,13 @@ function isTTY() {
|
|
|
212
218
|
function getRelativeCwd() {
|
|
213
219
|
return normalizePath((0, path_1.relative)(workspaceRoot, getCwd()));
|
|
214
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Function for setting cwd during testing
|
|
223
|
+
*/
|
|
224
|
+
function setCwd(path) {
|
|
225
|
+
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path);
|
|
226
|
+
}
|
|
227
|
+
exports.setCwd = setCwd;
|
|
215
228
|
function getCwd() {
|
|
216
229
|
return process.env.INIT_CWD?.startsWith(workspaceRoot)
|
|
217
230
|
? process.env.INIT_CWD
|
package/testing.d.ts
CHANGED
package/testing.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// These are the nx-reexports from before v16
|
|
7
|
-
// TODO(v17): This can be removed once the above is done.
|
|
8
|
-
module.exports = require('./testing-pre16');
|
|
9
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
5
|
+
tslib_1.__exportStar(require("nx/src/devkit-testing-exports"), exports);
|
package/nx-reexports-pre16.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* STOP! Do not change this file!
|
|
3
|
-
*
|
|
4
|
-
* If you need to export something from nx, it should go into nx/src/devkit-exports
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @category Tree
|
|
8
|
-
*/
|
|
9
|
-
export type { Tree, FileChange } from 'nx/src/generators/tree';
|
|
10
|
-
/**
|
|
11
|
-
* @category Workspace
|
|
12
|
-
*/
|
|
13
|
-
export type { WorkspaceJsonConfiguration, ProjectsConfigurations, TargetDependencyConfig, TargetConfiguration, ProjectConfiguration, ProjectType, Workspace, } from 'nx/src/config/workspace-json-project-json';
|
|
14
|
-
/**
|
|
15
|
-
* @category Workspace
|
|
16
|
-
*/
|
|
17
|
-
export type { Generator, GeneratorCallback, Executor, ExecutorContext, TaskGraphExecutor, GeneratorsJson, ExecutorsJson, MigrationsJson, CustomHasher, HasherContext, } from 'nx/src/config/misc-interfaces';
|
|
18
|
-
/**
|
|
19
|
-
* @category Workspace
|
|
20
|
-
*/
|
|
21
|
-
export { Workspaces } from 'nx/src/config/workspaces';
|
|
22
|
-
export { workspaceLayout } from 'nx/src/config/configuration';
|
|
23
|
-
export type { NxPlugin, ProjectTargetConfigurator, } from 'nx/src/utils/nx-plugin';
|
|
24
|
-
/**
|
|
25
|
-
* @category Workspace
|
|
26
|
-
*/
|
|
27
|
-
export type { Task, TaskGraph } from 'nx/src/config/task-graph';
|
|
28
|
-
/**
|
|
29
|
-
* @category Workspace
|
|
30
|
-
*/
|
|
31
|
-
export type { ImplicitDependencyEntry, ImplicitJsonSubsetDependency, NxJsonConfiguration, NxAffectedConfig, } from 'nx/src/config/nx-json';
|
|
32
|
-
/**
|
|
33
|
-
* @category Logger
|
|
34
|
-
*/
|
|
35
|
-
export { logger } from 'nx/src/utils/logger';
|
|
36
|
-
/**
|
|
37
|
-
* @category Utils
|
|
38
|
-
*/
|
|
39
|
-
export { output } from 'nx/src/utils/output';
|
|
40
|
-
/**
|
|
41
|
-
* @category Package Manager
|
|
42
|
-
*/
|
|
43
|
-
export type { PackageManager } from 'nx/src/utils/package-manager';
|
|
44
|
-
/**
|
|
45
|
-
* @category Package Manager
|
|
46
|
-
*/
|
|
47
|
-
export { getPackageManagerCommand, detectPackageManager, getPackageManagerVersion, } from 'nx/src/utils/package-manager';
|
|
48
|
-
/**
|
|
49
|
-
* @category Commands
|
|
50
|
-
*/
|
|
51
|
-
export type { Target } from 'nx/src/command-line/run';
|
|
52
|
-
/**
|
|
53
|
-
* @category Commands
|
|
54
|
-
*/
|
|
55
|
-
export { runExecutor } from 'nx/src/command-line/run';
|
|
56
|
-
/**
|
|
57
|
-
* @category Generators
|
|
58
|
-
*/
|
|
59
|
-
export { addProjectConfiguration, readProjectConfiguration, removeProjectConfiguration, updateProjectConfiguration, getProjects, } from 'nx/src/generators/utils/project-configuration';
|
|
60
|
-
/**
|
|
61
|
-
* @category Generators
|
|
62
|
-
*/
|
|
63
|
-
export { readNxJson, updateNxJson, readWorkspaceConfiguration, updateWorkspaceConfiguration, isStandaloneProject, WorkspaceConfiguration, getWorkspacePath, } from 'nx/src/generators/utils/project-configuration';
|
|
64
|
-
/**
|
|
65
|
-
* @category Project Graph
|
|
66
|
-
*/
|
|
67
|
-
export type { ProjectFileMap, FileData, ProjectGraph, ProjectGraphDependency, ProjectGraphNode, ProjectGraphProjectNode, ProjectGraphExternalNode, ProjectGraphProcessorContext, } from 'nx/src/config/project-graph';
|
|
68
|
-
/**
|
|
69
|
-
* @category Project Graph
|
|
70
|
-
*/
|
|
71
|
-
export { DependencyType } from 'nx/src/config/project-graph';
|
|
72
|
-
/**
|
|
73
|
-
* @category Project Graph
|
|
74
|
-
*/
|
|
75
|
-
export { ProjectGraphBuilder } from 'nx/src/project-graph/project-graph-builder';
|
|
76
|
-
/**
|
|
77
|
-
* @category Utils
|
|
78
|
-
*/
|
|
79
|
-
export { readJson, writeJson, updateJson } from 'nx/src/generators/utils/json';
|
|
80
|
-
/**
|
|
81
|
-
* @category Utils
|
|
82
|
-
*/
|
|
83
|
-
export { parseJson, serializeJson, stripJsonComments } from 'nx/src/utils/json';
|
|
84
|
-
/**
|
|
85
|
-
* @category Utils
|
|
86
|
-
*/
|
|
87
|
-
export type { JsonParseOptions, JsonSerializeOptions } from 'nx/src/utils/json';
|
|
88
|
-
/**
|
|
89
|
-
* @category Utils
|
|
90
|
-
*/
|
|
91
|
-
export { readJsonFile, writeJsonFile } from 'nx/src/utils/fileutils';
|
|
92
|
-
/**
|
|
93
|
-
* @category Utils
|
|
94
|
-
*/
|
|
95
|
-
export { stripIndents } from 'nx/src/utils/strip-indents';
|
|
96
|
-
/**
|
|
97
|
-
* @category Utils
|
|
98
|
-
*/
|
|
99
|
-
export { joinPathFragments, normalizePath } from 'nx/src/utils/path';
|
|
100
|
-
/**
|
|
101
|
-
* @category Utils
|
|
102
|
-
*/
|
|
103
|
-
export { workspaceRoot, appRootPath } from 'nx/src/utils/app-root';
|
|
104
|
-
/**
|
|
105
|
-
* @category Utils
|
|
106
|
-
*/
|
|
107
|
-
export { reverse } from 'nx/src/project-graph/operators';
|
|
108
|
-
/**
|
|
109
|
-
* @category Utils
|
|
110
|
-
*/
|
|
111
|
-
export { createProjectGraphAsync, readCachedProjectGraph, } from 'nx/src/project-graph/project-graph';
|
|
112
|
-
/**
|
|
113
|
-
* @category Utils
|
|
114
|
-
*/
|
|
115
|
-
export { getOutputsForTargetAndConfiguration } from 'nx/src/tasks-runner/utils';
|
|
116
|
-
/**
|
|
117
|
-
* @category Utils
|
|
118
|
-
*/
|
|
119
|
-
export { defaultTasksRunner, DefaultTasksRunnerOptions, RemoteCache, } from 'nx/src/tasks-runner/default-tasks-runner';
|
|
120
|
-
/**
|
|
121
|
-
* @category Utils
|
|
122
|
-
*/
|
|
123
|
-
export { Hash, TaskHasher, Hasher } from 'nx/src/hasher/task-hasher';
|
|
124
|
-
/**
|
|
125
|
-
* @category Utils
|
|
126
|
-
*/
|
|
127
|
-
export { cacheDir } from 'nx/src/utils/cache-directory';
|
package/nx-reexports-pre16.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* STOP! Do not change this file!
|
|
4
|
-
*
|
|
5
|
-
* If you need to export something from nx, it should go into nx/src/devkit-exports
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.cacheDir = exports.defaultTasksRunner = exports.getOutputsForTargetAndConfiguration = exports.readCachedProjectGraph = exports.createProjectGraphAsync = exports.reverse = exports.appRootPath = exports.workspaceRoot = exports.normalizePath = exports.joinPathFragments = exports.stripIndents = exports.writeJsonFile = exports.readJsonFile = exports.stripJsonComments = exports.serializeJson = exports.parseJson = exports.updateJson = exports.writeJson = exports.readJson = exports.ProjectGraphBuilder = exports.DependencyType = exports.getWorkspacePath = exports.isStandaloneProject = exports.updateWorkspaceConfiguration = exports.readWorkspaceConfiguration = exports.updateNxJson = exports.readNxJson = exports.getProjects = exports.updateProjectConfiguration = exports.removeProjectConfiguration = exports.readProjectConfiguration = exports.addProjectConfiguration = exports.runExecutor = exports.getPackageManagerVersion = exports.detectPackageManager = exports.getPackageManagerCommand = exports.output = exports.logger = exports.workspaceLayout = exports.Workspaces = void 0;
|
|
9
|
-
/**
|
|
10
|
-
* @category Workspace
|
|
11
|
-
*/
|
|
12
|
-
var workspaces_1 = require("nx/src/config/workspaces");
|
|
13
|
-
Object.defineProperty(exports, "Workspaces", { enumerable: true, get: function () { return workspaces_1.Workspaces; } });
|
|
14
|
-
var configuration_1 = require("nx/src/config/configuration");
|
|
15
|
-
Object.defineProperty(exports, "workspaceLayout", { enumerable: true, get: function () { return configuration_1.workspaceLayout; } });
|
|
16
|
-
/**
|
|
17
|
-
* @category Logger
|
|
18
|
-
*/
|
|
19
|
-
var logger_1 = require("nx/src/utils/logger");
|
|
20
|
-
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
|
|
21
|
-
/**
|
|
22
|
-
* @category Utils
|
|
23
|
-
*/
|
|
24
|
-
var output_1 = require("nx/src/utils/output");
|
|
25
|
-
Object.defineProperty(exports, "output", { enumerable: true, get: function () { return output_1.output; } });
|
|
26
|
-
/**
|
|
27
|
-
* @category Package Manager
|
|
28
|
-
*/
|
|
29
|
-
var package_manager_1 = require("nx/src/utils/package-manager");
|
|
30
|
-
Object.defineProperty(exports, "getPackageManagerCommand", { enumerable: true, get: function () { return package_manager_1.getPackageManagerCommand; } });
|
|
31
|
-
Object.defineProperty(exports, "detectPackageManager", { enumerable: true, get: function () { return package_manager_1.detectPackageManager; } });
|
|
32
|
-
Object.defineProperty(exports, "getPackageManagerVersion", { enumerable: true, get: function () { return package_manager_1.getPackageManagerVersion; } });
|
|
33
|
-
/**
|
|
34
|
-
* @category Commands
|
|
35
|
-
*/
|
|
36
|
-
var run_1 = require("nx/src/command-line/run");
|
|
37
|
-
Object.defineProperty(exports, "runExecutor", { enumerable: true, get: function () { return run_1.runExecutor; } });
|
|
38
|
-
/**
|
|
39
|
-
* @category Generators
|
|
40
|
-
*/
|
|
41
|
-
var project_configuration_1 = require("nx/src/generators/utils/project-configuration");
|
|
42
|
-
Object.defineProperty(exports, "addProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.addProjectConfiguration; } });
|
|
43
|
-
Object.defineProperty(exports, "readProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.readProjectConfiguration; } });
|
|
44
|
-
Object.defineProperty(exports, "removeProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.removeProjectConfiguration; } });
|
|
45
|
-
Object.defineProperty(exports, "updateProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.updateProjectConfiguration; } });
|
|
46
|
-
Object.defineProperty(exports, "getProjects", { enumerable: true, get: function () { return project_configuration_1.getProjects; } });
|
|
47
|
-
/**
|
|
48
|
-
* @category Generators
|
|
49
|
-
*/
|
|
50
|
-
var project_configuration_2 = require("nx/src/generators/utils/project-configuration");
|
|
51
|
-
Object.defineProperty(exports, "readNxJson", { enumerable: true, get: function () { return project_configuration_2.readNxJson; } });
|
|
52
|
-
Object.defineProperty(exports, "updateNxJson", { enumerable: true, get: function () { return project_configuration_2.updateNxJson; } });
|
|
53
|
-
Object.defineProperty(exports, "readWorkspaceConfiguration", { enumerable: true, get: function () { return project_configuration_2.readWorkspaceConfiguration; } });
|
|
54
|
-
Object.defineProperty(exports, "updateWorkspaceConfiguration", { enumerable: true, get: function () { return project_configuration_2.updateWorkspaceConfiguration; } });
|
|
55
|
-
Object.defineProperty(exports, "isStandaloneProject", { enumerable: true, get: function () { return project_configuration_2.isStandaloneProject; } });
|
|
56
|
-
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return project_configuration_2.getWorkspacePath; } });
|
|
57
|
-
/**
|
|
58
|
-
* @category Project Graph
|
|
59
|
-
*/
|
|
60
|
-
var project_graph_1 = require("nx/src/config/project-graph");
|
|
61
|
-
Object.defineProperty(exports, "DependencyType", { enumerable: true, get: function () { return project_graph_1.DependencyType; } });
|
|
62
|
-
/**
|
|
63
|
-
* @category Project Graph
|
|
64
|
-
*/
|
|
65
|
-
var project_graph_builder_1 = require("nx/src/project-graph/project-graph-builder");
|
|
66
|
-
Object.defineProperty(exports, "ProjectGraphBuilder", { enumerable: true, get: function () { return project_graph_builder_1.ProjectGraphBuilder; } });
|
|
67
|
-
/**
|
|
68
|
-
* @category Utils
|
|
69
|
-
*/
|
|
70
|
-
var json_1 = require("nx/src/generators/utils/json");
|
|
71
|
-
Object.defineProperty(exports, "readJson", { enumerable: true, get: function () { return json_1.readJson; } });
|
|
72
|
-
Object.defineProperty(exports, "writeJson", { enumerable: true, get: function () { return json_1.writeJson; } });
|
|
73
|
-
Object.defineProperty(exports, "updateJson", { enumerable: true, get: function () { return json_1.updateJson; } });
|
|
74
|
-
/**
|
|
75
|
-
* @category Utils
|
|
76
|
-
*/
|
|
77
|
-
var json_2 = require("nx/src/utils/json");
|
|
78
|
-
Object.defineProperty(exports, "parseJson", { enumerable: true, get: function () { return json_2.parseJson; } });
|
|
79
|
-
Object.defineProperty(exports, "serializeJson", { enumerable: true, get: function () { return json_2.serializeJson; } });
|
|
80
|
-
Object.defineProperty(exports, "stripJsonComments", { enumerable: true, get: function () { return json_2.stripJsonComments; } });
|
|
81
|
-
/**
|
|
82
|
-
* @category Utils
|
|
83
|
-
*/
|
|
84
|
-
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
85
|
-
Object.defineProperty(exports, "readJsonFile", { enumerable: true, get: function () { return fileutils_1.readJsonFile; } });
|
|
86
|
-
Object.defineProperty(exports, "writeJsonFile", { enumerable: true, get: function () { return fileutils_1.writeJsonFile; } });
|
|
87
|
-
/**
|
|
88
|
-
* @category Utils
|
|
89
|
-
*/
|
|
90
|
-
var strip_indents_1 = require("nx/src/utils/strip-indents");
|
|
91
|
-
Object.defineProperty(exports, "stripIndents", { enumerable: true, get: function () { return strip_indents_1.stripIndents; } });
|
|
92
|
-
/**
|
|
93
|
-
* @category Utils
|
|
94
|
-
*/
|
|
95
|
-
var path_1 = require("nx/src/utils/path");
|
|
96
|
-
Object.defineProperty(exports, "joinPathFragments", { enumerable: true, get: function () { return path_1.joinPathFragments; } });
|
|
97
|
-
Object.defineProperty(exports, "normalizePath", { enumerable: true, get: function () { return path_1.normalizePath; } });
|
|
98
|
-
// TODO(v16): Change this to export from 'nx/src/utils/workspace-root'
|
|
99
|
-
/**
|
|
100
|
-
* @category Utils
|
|
101
|
-
*/
|
|
102
|
-
var app_root_1 = require("nx/src/utils/app-root");
|
|
103
|
-
Object.defineProperty(exports, "workspaceRoot", { enumerable: true, get: function () { return app_root_1.workspaceRoot; } });
|
|
104
|
-
Object.defineProperty(exports, "appRootPath", { enumerable: true, get: function () { return app_root_1.appRootPath; } });
|
|
105
|
-
/**
|
|
106
|
-
* @category Utils
|
|
107
|
-
*/
|
|
108
|
-
var operators_1 = require("nx/src/project-graph/operators");
|
|
109
|
-
Object.defineProperty(exports, "reverse", { enumerable: true, get: function () { return operators_1.reverse; } });
|
|
110
|
-
/**
|
|
111
|
-
* @category Utils
|
|
112
|
-
*/
|
|
113
|
-
var project_graph_2 = require("nx/src/project-graph/project-graph");
|
|
114
|
-
Object.defineProperty(exports, "createProjectGraphAsync", { enumerable: true, get: function () { return project_graph_2.createProjectGraphAsync; } });
|
|
115
|
-
Object.defineProperty(exports, "readCachedProjectGraph", { enumerable: true, get: function () { return project_graph_2.readCachedProjectGraph; } });
|
|
116
|
-
/**
|
|
117
|
-
* @category Utils
|
|
118
|
-
*/
|
|
119
|
-
var utils_1 = require("nx/src/tasks-runner/utils");
|
|
120
|
-
Object.defineProperty(exports, "getOutputsForTargetAndConfiguration", { enumerable: true, get: function () { return utils_1.getOutputsForTargetAndConfiguration; } });
|
|
121
|
-
/**
|
|
122
|
-
* @category Utils
|
|
123
|
-
*/
|
|
124
|
-
var default_tasks_runner_1 = require("nx/src/tasks-runner/default-tasks-runner");
|
|
125
|
-
Object.defineProperty(exports, "defaultTasksRunner", { enumerable: true, get: function () { return default_tasks_runner_1.defaultTasksRunner; } });
|
|
126
|
-
/**
|
|
127
|
-
* @category Utils
|
|
128
|
-
*/
|
|
129
|
-
var cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
130
|
-
Object.defineProperty(exports, "cacheDir", { enumerable: true, get: function () { return cache_directory_1.cacheDir; } });
|
|
131
|
-
// STOP! Do not export any new things from the nx package
|
package/testing-pre16.d.ts
DELETED
package/testing-pre16.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTree = exports.createTreeWithEmptyV1Workspace = exports.createTreeWithEmptyWorkspace = void 0;
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-restricted-imports */
|
|
5
|
-
var create_tree_with_empty_workspace_1 = require("nx/src/generators/testing-utils/create-tree-with-empty-workspace");
|
|
6
|
-
Object.defineProperty(exports, "createTreeWithEmptyWorkspace", { enumerable: true, get: function () { return create_tree_with_empty_workspace_1.createTreeWithEmptyWorkspace; } });
|
|
7
|
-
Object.defineProperty(exports, "createTreeWithEmptyV1Workspace", { enumerable: true, get: function () { return create_tree_with_empty_workspace_1.createTreeWithEmptyV1Workspace; } });
|
|
8
|
-
var create_tree_1 = require("nx/src/generators/testing-utils/create-tree");
|
|
9
|
-
Object.defineProperty(exports, "createTree", { enumerable: true, get: function () { return create_tree_1.createTree; } });
|