nx 23.3.0-beta.1 → 23.3.0-beta.2
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/dist/src/command-line/init/implementation/add-nx-to-monorepo.js +0 -3
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +0 -3
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.js +0 -3
- package/dist/src/command-line/init/implementation/angular/index.js +0 -3
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.js +0 -3
- package/dist/src/command-line/init/implementation/utils.d.ts +0 -1
- package/dist/src/command-line/init/implementation/utils.js +0 -8
- package/dist/src/command-line/init/init-v2.js +0 -3
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +0 -10
- package/dist/src/core/graph/main.js +1 -1
- package/dist/src/daemon/client/client.d.ts +2 -0
- package/dist/src/daemon/client/client.js +7 -0
- package/dist/src/daemon/message-types/get-plugin-capabilities.d.ts +5 -0
- package/dist/src/daemon/message-types/get-plugin-capabilities.js +11 -0
- package/dist/src/daemon/server/handle-get-plugin-capabilities.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-plugin-capabilities.js +13 -0
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +1 -1
- package/dist/src/daemon/server/server.js +5 -0
- package/dist/src/native/index.d.ts +20 -0
- package/dist/src/native/native-bindings.js +1 -0
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/project-graph/affected/locators/project-glob-changes.js +19 -26
- package/dist/src/project-graph/error-types.d.ts +5 -0
- package/dist/src/project-graph/error-types.js +44 -5
- package/dist/src/project-graph/file-utils.d.ts +2 -0
- package/dist/src/project-graph/file-utils.js +6 -1
- package/dist/src/project-graph/nx-deps-cache.d.ts +5 -2
- package/dist/src/project-graph/nx-deps-cache.js +4 -4
- package/dist/src/project-graph/plugins/get-plugins.d.ts +3 -1
- package/dist/src/project-graph/plugins/get-plugins.js +60 -82
- package/dist/src/project-graph/plugins/in-process-loader.d.ts +1 -1
- package/dist/src/project-graph/plugins/in-process-loader.js +1 -4
- package/dist/src/project-graph/plugins/isolation/index.d.ts +1 -1
- package/dist/src/project-graph/plugins/isolation/index.js +3 -1
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.d.ts +8 -0
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +40 -5
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +10 -1
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.js +67 -17
- package/dist/src/project-graph/plugins/loaded-nx-plugin.d.ts +2 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +9 -0
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.d.ts +6 -0
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.js +28 -0
- package/dist/src/project-graph/plugins/tasks-execution-hooks.js +12 -0
- package/dist/src/project-graph/project-graph.js +41 -42
- package/dist/src/utils/ab-testing.d.ts +1 -1
- package/dist/src/utils/ab-testing.js +0 -4
- package/dist/src/utils/handle-errors.js +5 -43
- package/dist/src/utils/plugins/plugin-capabilities.js +7 -2
- package/dist/src/utils/serialize-overrides-into-command-line.js +2 -4
- package/package.json +11 -12
|
@@ -65,9 +65,6 @@ async function addNxToMonorepo(options, guided = true) {
|
|
|
65
65
|
output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
|
|
66
66
|
await (0, utils_1.initCloud)('nx-init-monorepo');
|
|
67
67
|
}
|
|
68
|
-
else if (nxCloudChoice === 'never') {
|
|
69
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
70
|
-
}
|
|
71
68
|
}
|
|
72
69
|
// scanning package.json files
|
|
73
70
|
function allProjectPackageJsonFiles(repoRoot) {
|
|
@@ -92,9 +92,6 @@ async function addNxToNest(options, packageJson) {
|
|
|
92
92
|
output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
|
|
93
93
|
await (0, utils_1.initCloud)('nx-init-nest');
|
|
94
94
|
}
|
|
95
|
-
else if (nxCloudChoice === 'never') {
|
|
96
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
97
|
-
}
|
|
98
95
|
}
|
|
99
96
|
function addNestPluginToPackageJson(repoRoot) {
|
|
100
97
|
const path = (0, path_1.join)(repoRoot, `package.json`);
|
|
@@ -64,7 +64,4 @@ async function addNxToNpmRepo(options, guided = true) {
|
|
|
64
64
|
output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
|
|
65
65
|
await (0, utils_1.initCloud)('nx-init-npm-repo');
|
|
66
66
|
}
|
|
67
|
-
else if (nxCloudChoice === 'never') {
|
|
68
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
69
|
-
}
|
|
70
67
|
}
|
|
@@ -56,9 +56,6 @@ async function addNxToAngularCliRepo(options) {
|
|
|
56
56
|
output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
|
|
57
57
|
await (0, utils_1.initCloud)('nx-init-angular');
|
|
58
58
|
}
|
|
59
|
-
else if (nxCloudChoice === 'never') {
|
|
60
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
61
|
-
}
|
|
62
59
|
}
|
|
63
60
|
async function collectCacheableOperations(options) {
|
|
64
61
|
let cacheableOperations;
|
|
@@ -119,9 +119,6 @@ async function getLegacyMigrationFunctionIfApplicable(repoRoot, options) {
|
|
|
119
119
|
output_1.output.log({ title: '🛠️ Setting up Nx Cloud' });
|
|
120
120
|
await (0, utils_1.initCloud)('nx-init-angular');
|
|
121
121
|
}
|
|
122
|
-
else if (nxCloudChoice === 'never') {
|
|
123
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
124
|
-
}
|
|
125
122
|
};
|
|
126
123
|
}
|
|
127
124
|
async function installDependencies(repoRoot, pkgInfo, pmc) {
|
|
@@ -24,7 +24,6 @@ export declare function toErrorString(error: unknown): string;
|
|
|
24
24
|
export declare function readErrorStderr(error: unknown): string;
|
|
25
25
|
export declare function extractErrorName(error: unknown, stderr: string): string;
|
|
26
26
|
export declare function initCloud(installationSource: 'nx-init' | 'nx-init-angular' | 'nx-init-monorepo' | 'nx-init-nest' | 'nx-init-npm-repo' | 'nx-init-turborepo'): Promise<void>;
|
|
27
|
-
export declare function setNeverConnectToCloud(repoRoot: string): void;
|
|
28
27
|
export declare function addVsCodeRecommendedExtensions(repoRoot: string, extensions: string[]): void;
|
|
29
28
|
export declare function markRootPackageJsonAsNxProjectLegacy(repoRoot: string, cacheableScripts: string[], pmc: PackageManagerCommands): void;
|
|
30
29
|
export declare function markPackageJsonAsNxProject(packageJsonPath: string): void;
|
|
@@ -10,7 +10,6 @@ exports.toErrorString = toErrorString;
|
|
|
10
10
|
exports.readErrorStderr = readErrorStderr;
|
|
11
11
|
exports.extractErrorName = extractErrorName;
|
|
12
12
|
exports.initCloud = initCloud;
|
|
13
|
-
exports.setNeverConnectToCloud = setNeverConnectToCloud;
|
|
14
13
|
exports.addVsCodeRecommendedExtensions = addVsCodeRecommendedExtensions;
|
|
15
14
|
exports.markRootPackageJsonAsNxProjectLegacy = markRootPackageJsonAsNxProjectLegacy;
|
|
16
15
|
exports.markPackageJsonAsNxProject = markPackageJsonAsNxProject;
|
|
@@ -341,13 +340,6 @@ async function initCloud(installationSource) {
|
|
|
341
340
|
});
|
|
342
341
|
await (0, connect_to_nx_cloud_1.printSuccessMessage)(token, installationSource);
|
|
343
342
|
}
|
|
344
|
-
function setNeverConnectToCloud(repoRoot) {
|
|
345
|
-
const nxJsonPath = (0, path_1.join)(repoRoot, 'nx.json');
|
|
346
|
-
const nxJson = (0, fileutils_1.readJsonFile)(nxJsonPath);
|
|
347
|
-
nxJson.neverConnectToCloud = true;
|
|
348
|
-
(0, fileutils_1.writeJsonFile)(nxJsonPath, nxJson);
|
|
349
|
-
(0, format_1.recordInitWrite)(nxJsonPath);
|
|
350
|
-
}
|
|
351
343
|
function addVsCodeRecommendedExtensions(repoRoot, extensions) {
|
|
352
344
|
const vsCodeExtensionsPath = (0, path_1.join)(repoRoot, '.vscode/extensions.json');
|
|
353
345
|
if ((0, fileutils_1.fileExists)(vsCodeExtensionsPath)) {
|
|
@@ -379,9 +379,6 @@ async function runInit(options, baseMeta) {
|
|
|
379
379
|
if (nxCloudChoice === 'yes') {
|
|
380
380
|
await (0, utils_1.initCloud)('nx-init');
|
|
381
381
|
}
|
|
382
|
-
else if (nxCloudChoice === 'never') {
|
|
383
|
-
(0, utils_1.setNeverConnectToCloud)(repoRoot);
|
|
384
|
-
}
|
|
385
382
|
const analyticsPrompt = await (0, analytics_prompt_1.ensureAnalyticsPreferenceSet)(repoRoot, options.interactive);
|
|
386
383
|
await (0, ab_testing_1.recordStat)({
|
|
387
384
|
command: 'init',
|
|
@@ -7,7 +7,6 @@ exports.connectToNxCloudCommand = connectToNxCloudCommand;
|
|
|
7
7
|
exports.connectExistingRepoToNxCloudPrompt = connectExistingRepoToNxCloudPrompt;
|
|
8
8
|
exports.connectToNxCloudWithPrompt = connectToNxCloudWithPrompt;
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
|
-
const path_1 = require("path");
|
|
11
10
|
const prompt_helpers_1 = require("../../../utils/prompt-helpers");
|
|
12
11
|
const output_1 = require("../../../utils/output");
|
|
13
12
|
const configuration_1 = require("../../../config/configuration");
|
|
@@ -15,7 +14,6 @@ const tree_1 = require("../../../generators/tree");
|
|
|
15
14
|
const connect_to_nx_cloud_1 = require("../../../nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud");
|
|
16
15
|
const url_shorten_1 = require("../../../nx-cloud/utilities/url-shorten");
|
|
17
16
|
const nx_cloud_utils_1 = require("../../../utils/nx-cloud-utils");
|
|
18
|
-
const fileutils_1 = require("../../../utils/fileutils");
|
|
19
17
|
const child_process_1 = require("../../../utils/child-process");
|
|
20
18
|
const ab_testing_1 = require("../../../utils/ab-testing");
|
|
21
19
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -212,14 +210,6 @@ async function connectToNxCloudWithPrompt(command) {
|
|
|
212
210
|
if (setNxCloud === 'yes') {
|
|
213
211
|
useCloud = await connectToNxCloudCommand({ generateToken: false }, command);
|
|
214
212
|
}
|
|
215
|
-
else if (setNxCloud === 'never') {
|
|
216
|
-
const nxJsonPath = (0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json');
|
|
217
|
-
const nxJson = (0, configuration_1.readNxJson)();
|
|
218
|
-
if (nxJson) {
|
|
219
|
-
nxJson.neverConnectToCloud = true;
|
|
220
|
-
(0, fileutils_1.writeJsonFile)(nxJsonPath, nxJson);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
213
|
await (0, ab_testing_1.recordStat)({
|
|
224
214
|
command,
|
|
225
215
|
nxVersion: versions_1.nxVersion,
|