nx 19.0.0-beta.0 → 19.0.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/migrations.json CHANGED
@@ -58,7 +58,8 @@
58
58
  "cli": "nx",
59
59
  "version": "16.8.0-beta.3",
60
60
  "description": "Escape $ in env variables",
61
- "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables"
61
+ "implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
62
+ "x-repair-skip": true
62
63
  },
63
64
  "17.0.0-move-cache-directory": {
64
65
  "cli": "nx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.0.0-beta.0",
3
+ "version": "19.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -66,7 +66,7 @@
66
66
  "yargs-parser": "21.1.1",
67
67
  "node-machine-id": "1.1.12",
68
68
  "ora": "5.3.0",
69
- "@nrwl/tao": "19.0.0-beta.0"
69
+ "@nrwl/tao": "19.0.0-beta.2"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@swc-node/register": "^1.8.0",
@@ -81,16 +81,16 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "19.0.0-beta.0",
85
- "@nx/nx-darwin-arm64": "19.0.0-beta.0",
86
- "@nx/nx-linux-x64-gnu": "19.0.0-beta.0",
87
- "@nx/nx-linux-x64-musl": "19.0.0-beta.0",
88
- "@nx/nx-win32-x64-msvc": "19.0.0-beta.0",
89
- "@nx/nx-linux-arm64-gnu": "19.0.0-beta.0",
90
- "@nx/nx-linux-arm64-musl": "19.0.0-beta.0",
91
- "@nx/nx-linux-arm-gnueabihf": "19.0.0-beta.0",
92
- "@nx/nx-win32-arm64-msvc": "19.0.0-beta.0",
93
- "@nx/nx-freebsd-x64": "19.0.0-beta.0"
84
+ "@nx/nx-darwin-x64": "19.0.0-beta.2",
85
+ "@nx/nx-darwin-arm64": "19.0.0-beta.2",
86
+ "@nx/nx-linux-x64-gnu": "19.0.0-beta.2",
87
+ "@nx/nx-linux-x64-musl": "19.0.0-beta.2",
88
+ "@nx/nx-win32-x64-msvc": "19.0.0-beta.2",
89
+ "@nx/nx-linux-arm64-gnu": "19.0.0-beta.2",
90
+ "@nx/nx-linux-arm64-musl": "19.0.0-beta.2",
91
+ "@nx/nx-linux-arm-gnueabihf": "19.0.0-beta.2",
92
+ "@nx/nx-win32-arm64-msvc": "19.0.0-beta.2",
93
+ "@nx/nx-freebsd-x64": "19.0.0-beta.2"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -7,7 +7,7 @@ exports.yargsDepGraphCommand = {
7
7
  command: 'graph',
8
8
  describe: 'Graph dependencies within workspace',
9
9
  aliases: ['dep-graph'],
10
- builder: (yargs) => (0, documentation_1.linkToNxDevAndExamples)((0, shared_options_1.withAffectedOptions)((0, shared_options_1.withDepGraphOptions)(yargs)), 'dep-graph')
10
+ builder: (yargs) => (0, documentation_1.linkToNxDevAndExamples)((0, shared_options_1.withVerbose)((0, shared_options_1.withAffectedOptions)((0, shared_options_1.withDepGraphOptions)(yargs))), 'dep-graph')
11
11
  .option('affected', {
12
12
  type: 'boolean',
13
13
  description: 'Highlight affected projects',
@@ -26,7 +26,7 @@ exports.yargsShowCommand = {
26
26
  const showProjectsCommand = {
27
27
  command: 'projects',
28
28
  describe: 'Show a list of projects in the workspace',
29
- builder: (yargs) => (0, shared_options_1.withAffectedOptions)(yargs)
29
+ builder: (yargs) => (0, shared_options_1.withVerbose)((0, shared_options_1.withAffectedOptions)(yargs))
30
30
  .option('affected', {
31
31
  type: 'boolean',
32
32
  description: 'Show only affected projects',
@@ -47,10 +47,6 @@ const showProjectsCommand = {
47
47
  type: 'string',
48
48
  description: 'Select only projects of the given type',
49
49
  choices: ['app', 'lib', 'e2e'],
50
- })
51
- .option('verbose', {
52
- type: 'boolean',
53
- description: 'Prints additional information about the commands (e.g., stack traces)',
54
50
  })
55
51
  .implies('untracked', 'affected')
56
52
  .implies('uncommitted', 'affected')
@@ -28,6 +28,9 @@ export declare function withTargetAndConfigurationOption(yargs: Argv, demandOpti
28
28
  export declare function withConfiguration(yargs: Argv): Argv<{
29
29
  configuration: string;
30
30
  }>;
31
+ export declare function withVerbose(yargs: Argv): Argv<{
32
+ verbose: boolean;
33
+ }>;
31
34
  export declare function withBatch(yargs: Argv): any;
32
35
  export declare function withAffectedOptions(yargs: Argv): Argv<ExcludeOptions & {
33
36
  files: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseCSV = exports.withRunOneOptions = exports.withDepGraphOptions = exports.withOutputStyleOption = exports.withOverrides = exports.withRunManyOptions = exports.withAffectedOptions = exports.withBatch = exports.withConfiguration = exports.withTargetAndConfigurationOption = exports.withRunOptions = exports.withExcludeOption = void 0;
3
+ exports.parseCSV = exports.withRunOneOptions = exports.withDepGraphOptions = exports.withOutputStyleOption = exports.withOverrides = exports.withRunManyOptions = exports.withAffectedOptions = exports.withBatch = exports.withVerbose = exports.withConfiguration = exports.withTargetAndConfigurationOption = exports.withRunOptions = exports.withExcludeOption = void 0;
4
4
  function withExcludeOption(yargs) {
5
5
  return yargs.option('exclude', {
6
6
  describe: 'Exclude certain projects from being processed',
@@ -10,7 +10,7 @@ function withExcludeOption(yargs) {
10
10
  }
11
11
  exports.withExcludeOption = withExcludeOption;
12
12
  function withRunOptions(yargs) {
13
- return withExcludeOption(yargs)
13
+ return withVerbose(withExcludeOption(yargs))
14
14
  .option('parallel', {
15
15
  describe: 'Max number of parallel processes [default is 3]',
16
16
  type: 'string',
@@ -41,10 +41,6 @@ function withRunOptions(yargs) {
41
41
  : value === 'false' || value === false
42
42
  ? false
43
43
  : value,
44
- })
45
- .option('verbose', {
46
- type: 'boolean',
47
- describe: 'Prints additional information about the commands (e.g., stack traces)',
48
44
  })
49
45
  .option('nxBail', {
50
46
  describe: 'Stop command execution after the first failed task',
@@ -96,6 +92,19 @@ function withConfiguration(yargs) {
96
92
  });
97
93
  }
98
94
  exports.withConfiguration = withConfiguration;
95
+ function withVerbose(yargs) {
96
+ return yargs
97
+ .option('verbose', {
98
+ describe: 'Prints additional information about the commands (e.g., stack traces)',
99
+ type: 'boolean',
100
+ })
101
+ .middleware((args) => {
102
+ if (args.verbose) {
103
+ process.env.NX_VERBOSE_LOGGING = 'true';
104
+ }
105
+ });
106
+ }
107
+ exports.withVerbose = withVerbose;
99
108
  function withBatch(yargs) {
100
109
  return yargs.options('batch', {
101
110
  type: 'boolean',