nx 20.7.0-beta.1 → 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.
|
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.
|
86
|
-
"@nx/nx-darwin-x64": "20.7.0-beta.
|
87
|
-
"@nx/nx-freebsd-x64": "20.7.0-beta.
|
88
|
-
"@nx/nx-linux-arm-gnueabihf": "20.7.0-beta.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "20.7.0-beta.
|
90
|
-
"@nx/nx-linux-arm64-musl": "20.7.0-beta.
|
91
|
-
"@nx/nx-linux-x64-gnu": "20.7.0-beta.
|
92
|
-
"@nx/nx-linux-x64-musl": "20.7.0-beta.
|
93
|
-
"@nx/nx-win32-arm64-msvc": "20.7.0-beta.
|
94
|
-
"@nx/nx-win32-x64-msvc": "20.7.0-beta.
|
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
|
-
|
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
|
}
|
Binary file
|