nx 19.0.4 → 19.1.0-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.0.4",
3
+ "version": "19.1.0-beta.0",
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.4"
69
+ "@nrwl/tao": "19.1.0-beta.0"
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.4",
85
- "@nx/nx-darwin-arm64": "19.0.4",
86
- "@nx/nx-linux-x64-gnu": "19.0.4",
87
- "@nx/nx-linux-x64-musl": "19.0.4",
88
- "@nx/nx-win32-x64-msvc": "19.0.4",
89
- "@nx/nx-linux-arm64-gnu": "19.0.4",
90
- "@nx/nx-linux-arm64-musl": "19.0.4",
91
- "@nx/nx-linux-arm-gnueabihf": "19.0.4",
92
- "@nx/nx-win32-arm64-msvc": "19.0.4",
93
- "@nx/nx-freebsd-x64": "19.0.4"
84
+ "@nx/nx-darwin-x64": "19.1.0-beta.0",
85
+ "@nx/nx-darwin-arm64": "19.1.0-beta.0",
86
+ "@nx/nx-linux-x64-gnu": "19.1.0-beta.0",
87
+ "@nx/nx-linux-x64-musl": "19.1.0-beta.0",
88
+ "@nx/nx-win32-x64-msvc": "19.1.0-beta.0",
89
+ "@nx/nx-linux-arm64-gnu": "19.1.0-beta.0",
90
+ "@nx/nx-linux-arm64-musl": "19.1.0-beta.0",
91
+ "@nx/nx-linux-arm-gnueabihf": "19.1.0-beta.0",
92
+ "@nx/nx-win32-arm64-msvc": "19.1.0-beta.0",
93
+ "@nx/nx-freebsd-x64": "19.1.0-beta.0"
94
94
  },
95
95
  "nx-migrations": {
96
96
  "migrations": "./migrations.json",
@@ -257,6 +257,10 @@ exports.examples = {
257
257
  },
258
258
  {
259
259
  command: 'show project my-app',
260
+ description: 'If in an interactive terminal, opens the project detail view. If not in an interactive terminal, defaults to JSON.',
261
+ },
262
+ {
263
+ command: 'show project my-app --json',
260
264
  description: 'Show detailed information about "my-app" in a json format.',
261
265
  },
262
266
  {
@@ -81,10 +81,9 @@ const showProjectCommand = {
81
81
  alias: 'p',
82
82
  description: 'Which project should be viewed?',
83
83
  })
84
- .default('json', true)
85
84
  .option('web', {
86
85
  type: 'boolean',
87
- description: 'Show project details in the browser',
86
+ description: 'Show project details in the browser. (default when interactive)',
88
87
  })
89
88
  .option('open', {
90
89
  type: 'boolean',
@@ -92,8 +91,15 @@ const showProjectCommand = {
92
91
  implies: 'web',
93
92
  })
94
93
  .check((argv) => {
95
- if (argv.web) {
96
- argv.json = false;
94
+ // If TTY is enabled, default to web. Otherwise, default to JSON.
95
+ const alreadySpecified = argv.web !== undefined || argv.json !== undefined;
96
+ if (!alreadySpecified) {
97
+ if (process.stdout.isTTY) {
98
+ argv.web = true;
99
+ }
100
+ else {
101
+ argv.json = true;
102
+ }
97
103
  }
98
104
  return true;
99
105
  })
@@ -9,12 +9,12 @@ import { LoadedNxPlugin } from '../plugins/internal-api';
9
9
  * @param nxJson
10
10
  */
11
11
  export declare function retrieveWorkspaceFiles(workspaceRoot: string, projectRootMap: Record<string, string>): Promise<{
12
- allWorkspaceFiles: import("../file-utils").FileData[];
12
+ allWorkspaceFiles: import("nx/src/devkit-exports").FileData[];
13
13
  fileMap: {
14
14
  projectFileMap: ProjectFiles;
15
- nonProjectFiles: import("../../native").FileData[];
15
+ nonProjectFiles: import("nx/src/native").FileData[];
16
16
  };
17
- rustReferences: import("../../native").NxWorkspaceFilesExternals;
17
+ rustReferences: import("nx/src/native").NxWorkspaceFilesExternals;
18
18
  }>;
19
19
  /**
20
20
  * Walk through the workspace and return `ProjectConfigurations`. Only use this if the projectFileMap is not needed.