nx 19.7.0-canary.20240905-ccda7f9 → 19.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/package.json +12 -12
  2. package/src/command-line/add/command-object.js +2 -2
  3. package/src/command-line/affected/command-object.js +1 -1
  4. package/src/command-line/connect/command-object.js +2 -2
  5. package/src/command-line/daemon/command-object.js +1 -1
  6. package/src/command-line/deprecated/command-objects.js +2 -2
  7. package/src/command-line/exec/command-object.js +1 -1
  8. package/src/command-line/format/command-object.js +4 -4
  9. package/src/command-line/generate/command-object.js +4 -4
  10. package/src/command-line/graph/command-object.js +6 -6
  11. package/src/command-line/import/command-object.js +6 -6
  12. package/src/command-line/list/command-object.js +1 -1
  13. package/src/command-line/login/command-object.js +1 -1
  14. package/src/command-line/logout/command-object.js +1 -1
  15. package/src/command-line/migrate/command-object.js +9 -9
  16. package/src/command-line/new/command-object.js +2 -2
  17. package/src/command-line/release/command-object.js +27 -27
  18. package/src/command-line/report/command-object.js +1 -1
  19. package/src/command-line/reset/command-object.js +1 -1
  20. package/src/command-line/run/command-object.js +1 -1
  21. package/src/command-line/run-many/command-object.js +1 -1
  22. package/src/command-line/show/command-object.js +10 -10
  23. package/src/command-line/watch/command-object.js +1 -1
  24. package/src/command-line/yargs-utils/shared-options.js +20 -20
  25. package/src/core/graph/main.js +1 -1
  26. package/src/core/graph/styles.css +1 -1
  27. package/src/daemon/server/server.js +1 -1
  28. package/src/daemon/server/watcher.d.ts +1 -1
  29. package/src/daemon/server/watcher.js +14 -12
  30. package/src/migrations/update-15-0-0/prefix-outputs.js +3 -18
  31. package/src/native/index.d.ts +4 -0
  32. package/src/native/native-bindings.js +2 -0
  33. package/src/native/nx.wasi-browser.js +53 -49
  34. package/src/native/nx.wasi.cjs +53 -49
  35. package/src/native/nx.wasm32-wasi.wasm +0 -0
  36. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +6 -41
  37. package/src/tasks-runner/cache.d.ts +2 -0
  38. package/src/tasks-runner/cache.js +15 -1
  39. package/src/tasks-runner/task-orchestrator.js +1 -10
  40. package/src/tasks-runner/utils.d.ts +1 -8
  41. package/src/tasks-runner/utils.js +9 -12
@@ -6,14 +6,14 @@ const shared_options_1 = require("../yargs-utils/shared-options");
6
6
  const params_1 = require("../../utils/params");
7
7
  exports.yargsShowCommand = {
8
8
  command: 'show',
9
- describe: 'Show information about the workspace (e.g., list of projects)',
9
+ describe: 'Show information about the workspace (e.g., list of projects).',
10
10
  builder: (yargs) => yargs
11
11
  .command(showProjectsCommand)
12
12
  .command(showProjectCommand)
13
13
  .demandCommand()
14
14
  .option('json', {
15
15
  type: 'boolean',
16
- description: 'Output JSON',
16
+ description: 'Output JSON.',
17
17
  })
18
18
  .example('$0 show projects', 'Show a list of all projects in the workspace')
19
19
  .example('$0 show projects --with-target serve', 'Show a list of all projects in the workspace that have a "serve" target')
@@ -25,11 +25,11 @@ exports.yargsShowCommand = {
25
25
  };
26
26
  const showProjectsCommand = {
27
27
  command: 'projects',
28
- describe: 'Show a list of projects in the workspace',
28
+ describe: 'Show a list of projects in the workspace.',
29
29
  builder: (yargs) => (0, shared_options_1.withVerbose)((0, shared_options_1.withAffectedOptions)(yargs))
30
30
  .option('affected', {
31
31
  type: 'boolean',
32
- description: 'Show only affected projects',
32
+ description: 'Show only affected projects.',
33
33
  })
34
34
  .option('projects', {
35
35
  type: 'string',
@@ -40,17 +40,17 @@ const showProjectsCommand = {
40
40
  .option('withTarget', {
41
41
  type: 'string',
42
42
  alias: ['t'],
43
- description: 'Show only projects that have a specific target',
43
+ description: 'Show only projects that have a specific target.',
44
44
  coerce: shared_options_1.parseCSV,
45
45
  })
46
46
  .option('type', {
47
47
  type: 'string',
48
- description: 'Select only projects of the given type',
48
+ description: 'Select only projects of the given type.',
49
49
  choices: ['app', 'lib', 'e2e'],
50
50
  })
51
51
  .option('sep', {
52
52
  type: 'string',
53
- description: 'Outputs projects with the specified seperator',
53
+ description: 'Outputs projects with the specified seperator.',
54
54
  })
55
55
  .implies('untracked', 'affected')
56
56
  .implies('uncommitted', 'affected')
@@ -79,15 +79,15 @@ const showProjectCommand = {
79
79
  .positional('projectName', {
80
80
  type: 'string',
81
81
  alias: 'p',
82
- description: 'Which project should be viewed?',
82
+ description: 'Which project should be viewed?.',
83
83
  })
84
84
  .option('web', {
85
85
  type: 'boolean',
86
- description: 'Show project details in the browser. (default when interactive)',
86
+ description: 'Show project details in the browser. (default when interactive).',
87
87
  })
88
88
  .option('open', {
89
89
  type: 'boolean',
90
- description: 'Set to false to prevent the browser from opening when using --web',
90
+ description: 'Set to false to prevent the browser from opening when using --web.',
91
91
  implies: 'web',
92
92
  })
93
93
  .check((argv) => {
@@ -5,7 +5,7 @@ const documentation_1 = require("../yargs-utils/documentation");
5
5
  const shared_options_1 = require("../yargs-utils/shared-options");
6
6
  exports.yargsWatchCommand = {
7
7
  command: 'watch',
8
- describe: 'Watch for changes within projects, and execute commands',
8
+ describe: 'Watch for changes within projects, and execute commands.',
9
9
  builder: (yargs) => (0, documentation_1.linkToNxDevAndExamples)(withWatchOptions(yargs), 'watch'),
10
10
  handler: async (args) => {
11
11
  await Promise.resolve().then(() => require('./watch')).then((m) => m.watch(args));
@@ -22,7 +22,7 @@ exports.defaultYargsParserConfiguration = {
22
22
  };
23
23
  function withExcludeOption(yargs) {
24
24
  return yargs.option('exclude', {
25
- describe: 'Exclude certain projects from being processed',
25
+ describe: 'Exclude certain projects from being processed.',
26
26
  type: 'string',
27
27
  coerce: parseCSV,
28
28
  });
@@ -30,7 +30,7 @@ function withExcludeOption(yargs) {
30
30
  function withRunOptions(yargs) {
31
31
  return withVerbose(withExcludeOption(yargs))
32
32
  .option('parallel', {
33
- describe: 'Max number of parallel processes [default is 3]',
33
+ describe: 'Max number of parallel processes [default is 3].',
34
34
  type: 'string',
35
35
  })
36
36
  .option('maxParallel', {
@@ -38,11 +38,11 @@ function withRunOptions(yargs) {
38
38
  hidden: true,
39
39
  })
40
40
  .options('runner', {
41
- describe: 'This is the name of the tasks runner configured in nx.json',
41
+ describe: 'This is the name of the tasks runner configured in nx.json.',
42
42
  type: 'string',
43
43
  })
44
44
  .option('prod', {
45
- describe: 'Use the production configuration',
45
+ describe: 'Use the production configuration.',
46
46
  type: 'boolean',
47
47
  default: false,
48
48
  hidden: true,
@@ -61,22 +61,22 @@ function withRunOptions(yargs) {
61
61
  : value,
62
62
  })
63
63
  .option('nxBail', {
64
- describe: 'Stop command execution after the first failed task',
64
+ describe: 'Stop command execution after the first failed task.',
65
65
  type: 'boolean',
66
66
  default: false,
67
67
  })
68
68
  .option('nxIgnoreCycles', {
69
- describe: 'Ignore cycles in the task graph',
69
+ describe: 'Ignore cycles in the task graph.',
70
70
  type: 'boolean',
71
71
  default: false,
72
72
  })
73
73
  .options('skipNxCache', {
74
- describe: 'Rerun the tasks even when the results are available in the cache',
74
+ describe: 'Rerun the tasks even when the results are available in the cache.',
75
75
  type: 'boolean',
76
76
  default: false,
77
77
  })
78
78
  .options('excludeTaskDependencies', {
79
- describe: 'Skips running dependent tasks first',
79
+ describe: 'Skips running dependent tasks first.',
80
80
  type: 'boolean',
81
81
  default: false,
82
82
  })
@@ -101,7 +101,7 @@ function withRunOptions(yargs) {
101
101
  }
102
102
  function withTargetAndConfigurationOption(yargs, demandOption = true) {
103
103
  return withConfiguration(yargs).option('targets', {
104
- describe: 'Tasks to run for affected projects',
104
+ describe: 'Tasks to run for affected projects.',
105
105
  type: 'string',
106
106
  alias: ['target', 't'],
107
107
  requiresArg: true,
@@ -112,7 +112,7 @@ function withTargetAndConfigurationOption(yargs, demandOption = true) {
112
112
  }
113
113
  function withConfiguration(yargs) {
114
114
  return yargs.options('configuration', {
115
- describe: 'This is the configuration to use when performing tasks on projects',
115
+ describe: 'This is the configuration to use when performing tasks on projects.',
116
116
  type: 'string',
117
117
  alias: 'c',
118
118
  });
@@ -120,7 +120,7 @@ function withConfiguration(yargs) {
120
120
  function withVerbose(yargs) {
121
121
  return yargs
122
122
  .option('verbose', {
123
- describe: 'Prints additional information about the commands (e.g., stack traces)',
123
+ describe: 'Prints additional information about the commands (e.g., stack traces).',
124
124
  type: 'boolean',
125
125
  })
126
126
  .middleware((args) => {
@@ -132,7 +132,7 @@ function withVerbose(yargs) {
132
132
  function withBatch(yargs) {
133
133
  return yargs.options('batch', {
134
134
  type: 'boolean',
135
- describe: 'Run task(s) in batches for executors which support batches',
135
+ describe: 'Run task(s) in batches for executors which support batches.',
136
136
  coerce: (v) => {
137
137
  return v || process.env.NX_BATCH_MODE === 'true';
138
138
  },
@@ -143,26 +143,26 @@ function withAffectedOptions(yargs) {
143
143
  return withExcludeOption(yargs)
144
144
  .parserConfiguration(exports.defaultYargsParserConfiguration)
145
145
  .option('files', {
146
- describe: 'Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces',
146
+ describe: 'Change the way Nx is calculating the affected command by providing directly changed files, list of files delimited by commas or spaces.',
147
147
  type: 'string',
148
148
  requiresArg: true,
149
149
  coerce: parseCSV,
150
150
  })
151
151
  .option('uncommitted', {
152
- describe: 'Uncommitted changes',
152
+ describe: 'Uncommitted changes.',
153
153
  type: 'boolean',
154
154
  })
155
155
  .option('untracked', {
156
- describe: 'Untracked changes',
156
+ describe: 'Untracked changes.',
157
157
  type: 'boolean',
158
158
  })
159
159
  .option('base', {
160
- describe: 'Base of the current branch (usually main)',
160
+ describe: 'Base of the current branch (usually main).',
161
161
  type: 'string',
162
162
  requiresArg: true,
163
163
  })
164
164
  .option('head', {
165
- describe: 'Latest commit of the current branch (usually HEAD)',
165
+ describe: 'Latest commit of the current branch (usually HEAD).',
166
166
  type: 'string',
167
167
  requiresArg: true,
168
168
  })
@@ -183,7 +183,7 @@ function withRunManyOptions(yargs) {
183
183
  type: 'string',
184
184
  alias: 'p',
185
185
  coerce: parseCSV,
186
- describe: 'Projects to run. (comma/space delimited project names and/or patterns)',
186
+ describe: 'Projects to run. (comma/space delimited project names and/or patterns).',
187
187
  })
188
188
  .option('all', {
189
189
  describe: '[deprecated] `run-many` runs all targets on all projects in the workspace if no projects are provided. This option is no longer required.',
@@ -224,11 +224,11 @@ function withRunOneOptions(yargs) {
224
224
  const res = withRunOptions(withOutputStyleOption(withConfiguration(yargs), allOutputStyles))
225
225
  .parserConfiguration(exports.defaultYargsParserConfiguration)
226
226
  .option('project', {
227
- describe: 'Target project',
227
+ describe: 'Target project.',
228
228
  type: 'string',
229
229
  })
230
230
  .option('help', {
231
- describe: 'Show Help',
231
+ describe: 'Show Help.',
232
232
  type: 'boolean',
233
233
  });
234
234
  if (executorShouldShowHelp) {