nx 19.7.0-canary.20240904-f39b995 → 19.7.0-canary.20240905-ccda7f9
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +12 -12
- package/src/command-line/release/changelog.js +1 -1
- package/src/command-line/release/command-object.d.ts +1 -0
- package/src/command-line/release/command-object.js +7 -8
- package/src/command-line/release/publish.js +3 -0
- package/src/command-line/release/utils/git.js +1 -1
- package/src/command-line/yargs-utils/shared-options.d.ts +2 -1
- package/src/command-line/yargs-utils/shared-options.js +5 -0
- package/src/core/graph/main.js +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/tasks-runner/run-command.js +4 -1
- package/src/utils/command-line-utils.d.ts +1 -0
Binary file
|
@@ -120,6 +120,9 @@ async function runCommand(projectsToRun, currentProjectGraph, { nxJson }, nxArgs
|
|
120
120
|
}
|
121
121
|
async function ensureWorkspaceIsInSyncAndGetGraphs(projectGraph, nxJson, projectNames, nxArgs, overrides, extraTargetDependencies, extraOptions) {
|
122
122
|
let taskGraph = createTaskGraphAndRunValidations(projectGraph, extraTargetDependencies ?? {}, projectNames, nxArgs, overrides, extraOptions);
|
123
|
+
if (nxArgs.skipSync) {
|
124
|
+
return { projectGraph, taskGraph };
|
125
|
+
}
|
123
126
|
// collect unique syncGenerators from the tasks
|
124
127
|
const uniqueSyncGenerators = (0, sync_generators_1.collectEnabledTaskSyncGeneratorsFromTaskGraph)(taskGraph, projectGraph, nxJson);
|
125
128
|
if (!uniqueSyncGenerators.size) {
|
@@ -134,7 +137,7 @@ async function ensureWorkspaceIsInSyncAndGetGraphs(projectGraph, nxJson, project
|
|
134
137
|
}
|
135
138
|
const outOfSyncTitle = 'The workspace is out of sync';
|
136
139
|
const resultBodyLines = [...(0, sync_generators_1.syncGeneratorResultsToMessageLines)(results), ''];
|
137
|
-
const fixMessage = 'You can manually run `nx sync` to update your workspace or you can set `sync.applyChanges` to `true` in your `nx.json` to apply the changes automatically when running tasks.';
|
140
|
+
const fixMessage = 'You can manually run `nx sync` to update your workspace or you can set `sync.applyChanges` to `true` in your `nx.json` to apply the changes automatically when running tasks in interactive environments.';
|
138
141
|
const willErrorOnCiMessage = 'Please note that this will be an error on CI.';
|
139
142
|
if ((0, is_ci_1.isCI)() || !process.stdout.isTTY) {
|
140
143
|
// If the user is running in CI or is running in a non-TTY environment we
|
@@ -30,6 +30,7 @@ export interface NxArgs {
|
|
30
30
|
type?: string;
|
31
31
|
batch?: boolean;
|
32
32
|
excludeTaskDependencies?: boolean;
|
33
|
+
skipSync?: boolean;
|
33
34
|
}
|
34
35
|
export declare function createOverrides(__overrides_unparsed__?: string[]): Record<string, any>;
|
35
36
|
export declare function getBaseRef(nxJson: NxJsonConfiguration): string;
|