nx 20.7.0-beta.0 → 20.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "20.7.0-beta.0",
3
+ "version": "20.7.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": {
@@ -82,16 +82,16 @@
82
82
  }
83
83
  },
84
84
  "optionalDependencies": {
85
- "@nx/nx-darwin-arm64": "20.7.0-beta.0",
86
- "@nx/nx-darwin-x64": "20.7.0-beta.0",
87
- "@nx/nx-freebsd-x64": "20.7.0-beta.0",
88
- "@nx/nx-linux-arm-gnueabihf": "20.7.0-beta.0",
89
- "@nx/nx-linux-arm64-gnu": "20.7.0-beta.0",
90
- "@nx/nx-linux-arm64-musl": "20.7.0-beta.0",
91
- "@nx/nx-linux-x64-gnu": "20.7.0-beta.0",
92
- "@nx/nx-linux-x64-musl": "20.7.0-beta.0",
93
- "@nx/nx-win32-arm64-msvc": "20.7.0-beta.0",
94
- "@nx/nx-win32-x64-msvc": "20.7.0-beta.0"
85
+ "@nx/nx-darwin-arm64": "20.7.0-beta.2",
86
+ "@nx/nx-darwin-x64": "20.7.0-beta.2",
87
+ "@nx/nx-freebsd-x64": "20.7.0-beta.2",
88
+ "@nx/nx-linux-arm-gnueabihf": "20.7.0-beta.2",
89
+ "@nx/nx-linux-arm64-gnu": "20.7.0-beta.2",
90
+ "@nx/nx-linux-arm64-musl": "20.7.0-beta.2",
91
+ "@nx/nx-linux-x64-gnu": "20.7.0-beta.2",
92
+ "@nx/nx-linux-x64-musl": "20.7.0-beta.2",
93
+ "@nx/nx-win32-arm64-msvc": "20.7.0-beta.2",
94
+ "@nx/nx-win32-x64-msvc": "20.7.0-beta.2"
95
95
  },
96
96
  "nx-migrations": {
97
97
  "migrations": "./migrations.json",
@@ -2,24 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleRegister = handleRegister;
4
4
  const workspace_root_1 = require("../../utils/workspace-root");
5
- const enquirer_1 = require("enquirer");
6
5
  const require_nx_key_1 = require("../../utils/require-nx-key");
7
6
  async function handleRegister(options) {
8
7
  const nxKey = await (0, require_nx_key_1.requireNxKey)();
9
- // If a key was provided through options, activate it directly
10
- if (options.key) {
11
- return nxKey.activateNxKey(workspace_root_1.workspaceRoot, options.key);
12
- }
13
- // Try to auto-register a key
14
- const generatedKey = await nxKey.autoRegisterNxKey(workspace_root_1.workspaceRoot);
15
- if (generatedKey) {
16
- return;
17
- }
18
- // If auto-registration was skipped, prompt for a key
19
- const { key } = await (0, enquirer_1.prompt)({
20
- type: 'input',
21
- name: 'key',
22
- message: 'Enter your key',
23
- });
24
- return nxKey.activateNxKey(workspace_root_1.workspaceRoot, key);
8
+ return nxKey.registerNxKey(workspace_root_1.workspaceRoot, options.key);
25
9
  }
@@ -40,7 +40,7 @@ export declare class NxCache {
40
40
  constructor(workspaceRoot: string, cachePath: string, dbConnection: ExternalObject<NxDbConnection>, linkTaskDetails?: boolean | undefined | null, maxCacheSize?: number | undefined | null)
41
41
  get(hash: string): CachedResult | null
42
42
  put(hash: string, terminalOutput: string, outputs: Array<string>, code: number): void
43
- applyRemoteCacheResults(hash: string, result: CachedResult, outputs: Array<string>): void
43
+ applyRemoteCacheResults(hash: string, result: CachedResult, outputs?: Array<string> | undefined | null): void
44
44
  getTaskOutputsPath(hash: string): string
45
45
  getCacheSize(): number
46
46
  copyFilesFromCache(cachedResult: CachedResult, outputs: Array<string>): number
Binary file