@react-native-windows/cli 0.73.1 → 0.74.0-preview.1
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/lib-commonjs/commands/autolinkWindows/autolinkWindows.d.ts +87 -87
- package/lib-commonjs/commands/autolinkWindows/autolinkWindows.js +654 -654
- package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.d.ts +14 -14
- package/lib-commonjs/commands/autolinkWindows/autolinkWindowsOptions.js +32 -32
- package/lib-commonjs/commands/codegenWindows/codegenWindows.d.ts +27 -27
- package/lib-commonjs/commands/codegenWindows/codegenWindows.js +205 -205
- package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.d.ts +12 -12
- package/lib-commonjs/commands/codegenWindows/codegenWindowsOptions.js +22 -22
- package/lib-commonjs/commands/config/configUtils.d.ts +123 -123
- package/lib-commonjs/commands/config/configUtils.js +380 -380
- package/lib-commonjs/commands/config/dependencyConfig.d.ts +37 -37
- package/lib-commonjs/commands/config/dependencyConfig.js +227 -227
- package/lib-commonjs/commands/config/projectConfig.d.ts +27 -27
- package/lib-commonjs/commands/config/projectConfig.js +180 -180
- package/lib-commonjs/commands/healthCheck/healthCheckList.d.ts +6 -6
- package/lib-commonjs/commands/healthCheck/healthCheckList.js +20 -20
- package/lib-commonjs/commands/healthCheck/healthCheckList.js.map +1 -1
- package/lib-commonjs/commands/healthCheck/healthChecks.d.ts +7 -7
- package/lib-commonjs/commands/healthCheck/healthChecks.js +123 -123
- package/lib-commonjs/commands/initWindows/initWindows.d.ts +46 -46
- package/lib-commonjs/commands/initWindows/initWindows.js +243 -243
- package/lib-commonjs/commands/initWindows/initWindowsOptions.d.ts +15 -15
- package/lib-commonjs/commands/initWindows/initWindowsOptions.js +37 -37
- package/lib-commonjs/commands/runWindows/runWindows.d.ts +10 -10
- package/lib-commonjs/commands/runWindows/runWindows.js +321 -321
- package/lib-commonjs/commands/runWindows/runWindowsOptions.d.ts +56 -56
- package/lib-commonjs/commands/runWindows/runWindowsOptions.js +132 -132
- package/lib-commonjs/e2etest/autolink.test.d.ts +6 -6
- package/lib-commonjs/e2etest/autolink.test.js +366 -366
- package/lib-commonjs/e2etest/dependencyConfig.test.d.ts +6 -6
- package/lib-commonjs/e2etest/dependencyConfig.test.js +129 -129
- package/lib-commonjs/e2etest/healthChecks.test.d.ts +6 -6
- package/lib-commonjs/e2etest/healthChecks.test.js +30 -30
- package/lib-commonjs/e2etest/initWindows.test.d.ts +6 -6
- package/lib-commonjs/e2etest/initWindows.test.js +42 -42
- package/lib-commonjs/e2etest/projectConfig.test.d.ts +6 -6
- package/lib-commonjs/e2etest/projectConfig.test.js +110 -110
- package/lib-commonjs/e2etest/projectConfig.utils.d.ts +8 -8
- package/lib-commonjs/e2etest/projectConfig.utils.js +76 -76
- package/lib-commonjs/e2etest/runWindows.test.d.ts +6 -6
- package/lib-commonjs/e2etest/runWindows.test.js +60 -60
- package/lib-commonjs/e2etest/typesUpToDate.test.d.ts +6 -0
- package/lib-commonjs/e2etest/typesUpToDate.test.js +21 -0
- package/lib-commonjs/e2etest/typesUpToDate.test.js.map +1 -0
- package/lib-commonjs/generator-common/index.d.ts +39 -39
- package/lib-commonjs/generator-common/index.js +242 -242
- package/lib-commonjs/generator-windows/index.d.ts +10 -10
- package/lib-commonjs/generator-windows/index.js +316 -316
- package/lib-commonjs/index.d.ts +50 -50
- package/lib-commonjs/index.js +77 -77
- package/lib-commonjs/utils/build.d.ts +12 -12
- package/lib-commonjs/utils/build.js +84 -84
- package/lib-commonjs/utils/checkRequirements.d.ts +6 -6
- package/lib-commonjs/utils/checkRequirements.js +69 -69
- package/lib-commonjs/utils/commandWithProgress.d.ts +21 -21
- package/lib-commonjs/utils/commandWithProgress.js +149 -149
- package/lib-commonjs/utils/deploy.d.ts +12 -12
- package/lib-commonjs/utils/deploy.js +353 -353
- package/lib-commonjs/utils/info.d.ts +6 -6
- package/lib-commonjs/utils/info.js +28 -28
- package/lib-commonjs/utils/msbuildtools.d.ts +28 -28
- package/lib-commonjs/utils/msbuildtools.js +273 -273
- package/lib-commonjs/utils/msbuildtools.js.map +1 -1
- package/lib-commonjs/utils/pathHelpers.d.ts +9 -9
- package/lib-commonjs/utils/pathHelpers.js +36 -36
- package/lib-commonjs/utils/telemetryHelpers.d.ts +29 -29
- package/lib-commonjs/utils/telemetryHelpers.js +120 -120
- package/lib-commonjs/utils/version.d.ts +19 -19
- package/lib-commonjs/utils/version.js +109 -109
- package/lib-commonjs/utils/vsInstalls.d.ts +34 -34
- package/lib-commonjs/utils/vsInstalls.js +99 -99
- package/lib-commonjs/utils/vstools.d.ts +16 -16
- package/lib-commonjs/utils/vstools.js +189 -189
- package/lib-commonjs/utils/winappdeploytool.d.ts +24 -24
- package/lib-commonjs/utils/winappdeploytool.js +108 -108
- package/package.json +16 -16
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
import { CommandOption } from '@react-native-community/cli-types';
|
|
7
|
-
export type BuildArch = 'x86' | 'x64' | 'ARM64';
|
|
8
|
-
export type BuildConfig = 'Debug' | 'DebugBundle' | 'Release' | 'ReleaseBundle';
|
|
9
|
-
/**
|
|
10
|
-
* * Options are the following:
|
|
11
|
-
* release: Boolean - Specifies release build
|
|
12
|
-
* root: String - The root of the application
|
|
13
|
-
* arch: String - The build architecture (ARM64, x86, x64)
|
|
14
|
-
* singleproc: Boolean - opt out of multi-proc builds
|
|
15
|
-
* emulator: Boolean - Deploy to the emulator
|
|
16
|
-
* device: Boolean - Deploy to a device
|
|
17
|
-
* target: String - Device GUID to deploy to
|
|
18
|
-
* remote-debugging: Boolean - Run using remote JS proxy
|
|
19
|
-
* logging: Boolean - Enables logging
|
|
20
|
-
* no-packager: Boolean - Do not launch packager while building
|
|
21
|
-
* bundle: Boolean - Enable Bundle configuration.
|
|
22
|
-
* no-launch: Boolean - Do not launch the app after deployment
|
|
23
|
-
* no-build: Boolean - Do not build the solution
|
|
24
|
-
* no-deploy: Boolean - Do not deploy the app
|
|
25
|
-
* deploy-from-layout: Force deploy from layout, even in release builds
|
|
26
|
-
* sln: String - Solution file to build
|
|
27
|
-
* msbuildprops: String - Comma separated props to pass to msbuild, eg: prop1=value1,prop2=value2
|
|
28
|
-
* direct-debugging: Number - Enable direct debugging on specified port
|
|
29
|
-
* no-telemetry: Boolean - Disables sending telemetry that allows analysis of usage and failures of the react-native-windows CLI
|
|
30
|
-
*/
|
|
31
|
-
export interface RunWindowsOptions {
|
|
32
|
-
release?: boolean;
|
|
33
|
-
root: string;
|
|
34
|
-
arch: BuildArch;
|
|
35
|
-
singleproc?: boolean;
|
|
36
|
-
emulator?: boolean;
|
|
37
|
-
device?: boolean;
|
|
38
|
-
target?: string;
|
|
39
|
-
remoteDebugging?: string;
|
|
40
|
-
logging?: boolean;
|
|
41
|
-
packager?: boolean;
|
|
42
|
-
bundle?: boolean;
|
|
43
|
-
launch?: boolean;
|
|
44
|
-
autolink?: boolean;
|
|
45
|
-
build?: boolean;
|
|
46
|
-
deploy?: boolean;
|
|
47
|
-
deployFromLayout?: boolean;
|
|
48
|
-
sln?: string;
|
|
49
|
-
proj?: string;
|
|
50
|
-
msbuildprops?: string;
|
|
51
|
-
buildLogDirectory?: string;
|
|
52
|
-
info?: boolean;
|
|
53
|
-
directDebugging?: number;
|
|
54
|
-
telemetry?: boolean;
|
|
55
|
-
}
|
|
56
|
-
export declare const runWindowsOptions: CommandOption[];
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import { CommandOption } from '@react-native-community/cli-types';
|
|
7
|
+
export type BuildArch = 'x86' | 'x64' | 'ARM64';
|
|
8
|
+
export type BuildConfig = 'Debug' | 'DebugBundle' | 'Release' | 'ReleaseBundle';
|
|
9
|
+
/**
|
|
10
|
+
* * Options are the following:
|
|
11
|
+
* release: Boolean - Specifies release build
|
|
12
|
+
* root: String - The root of the application
|
|
13
|
+
* arch: String - The build architecture (ARM64, x86, x64)
|
|
14
|
+
* singleproc: Boolean - opt out of multi-proc builds
|
|
15
|
+
* emulator: Boolean - Deploy to the emulator
|
|
16
|
+
* device: Boolean - Deploy to a device
|
|
17
|
+
* target: String - Device GUID to deploy to
|
|
18
|
+
* remote-debugging: Boolean - Run using remote JS proxy
|
|
19
|
+
* logging: Boolean - Enables logging
|
|
20
|
+
* no-packager: Boolean - Do not launch packager while building
|
|
21
|
+
* bundle: Boolean - Enable Bundle configuration.
|
|
22
|
+
* no-launch: Boolean - Do not launch the app after deployment
|
|
23
|
+
* no-build: Boolean - Do not build the solution
|
|
24
|
+
* no-deploy: Boolean - Do not deploy the app
|
|
25
|
+
* deploy-from-layout: Force deploy from layout, even in release builds
|
|
26
|
+
* sln: String - Solution file to build
|
|
27
|
+
* msbuildprops: String - Comma separated props to pass to msbuild, eg: prop1=value1,prop2=value2
|
|
28
|
+
* direct-debugging: Number - Enable direct debugging on specified port
|
|
29
|
+
* no-telemetry: Boolean - Disables sending telemetry that allows analysis of usage and failures of the react-native-windows CLI
|
|
30
|
+
*/
|
|
31
|
+
export interface RunWindowsOptions {
|
|
32
|
+
release?: boolean;
|
|
33
|
+
root: string;
|
|
34
|
+
arch: BuildArch;
|
|
35
|
+
singleproc?: boolean;
|
|
36
|
+
emulator?: boolean;
|
|
37
|
+
device?: boolean;
|
|
38
|
+
target?: string;
|
|
39
|
+
remoteDebugging?: string;
|
|
40
|
+
logging?: boolean;
|
|
41
|
+
packager?: boolean;
|
|
42
|
+
bundle?: boolean;
|
|
43
|
+
launch?: boolean;
|
|
44
|
+
autolink?: boolean;
|
|
45
|
+
build?: boolean;
|
|
46
|
+
deploy?: boolean;
|
|
47
|
+
deployFromLayout?: boolean;
|
|
48
|
+
sln?: string;
|
|
49
|
+
proj?: string;
|
|
50
|
+
msbuildprops?: string;
|
|
51
|
+
buildLogDirectory?: string;
|
|
52
|
+
info?: boolean;
|
|
53
|
+
directDebugging?: number;
|
|
54
|
+
telemetry?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export declare const runWindowsOptions: CommandOption[];
|
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
* @format
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.runWindowsOptions = void 0;
|
|
9
|
-
const telemetry_1 = require("@react-native-windows/telemetry");
|
|
10
|
-
exports.runWindowsOptions = [
|
|
11
|
-
{
|
|
12
|
-
name: '--release',
|
|
13
|
-
description: 'Specifies a release build',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: '--root [string]',
|
|
17
|
-
description: 'Override the root directory for the windows build which contains the windows folder.',
|
|
18
|
-
default: config => config.root,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: '--arch [string]',
|
|
22
|
-
description: 'The build architecture (ARM64, x86, x64)',
|
|
23
|
-
default: parseBuildArch((0, telemetry_1.deviceArchitecture)()),
|
|
24
|
-
parse: parseBuildArch,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: '--singleproc',
|
|
28
|
-
description: 'Disables multi-proc build',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: '--emulator',
|
|
32
|
-
description: 'Deploys the app to an emulator',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: '--device',
|
|
36
|
-
description: 'Deploys the app to a connected device',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: '--target [string]',
|
|
40
|
-
description: 'Deploys the app to the specified GUID for a device.',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: '--remote-debugging',
|
|
44
|
-
description: 'Deploys the app in remote debugging mode.',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: '--logging',
|
|
48
|
-
description: 'Enables logging',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: '--no-packager',
|
|
52
|
-
description: 'Do not launch packager while building',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: '--bundle',
|
|
56
|
-
description: 'Enable Bundle configuration and it would be ReleaseBundle/DebugBundle other than Release/Debug',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: '--no-launch',
|
|
60
|
-
description: 'Do not launch the app after deployment',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: '--no-autolink',
|
|
64
|
-
description: 'Do not run autolinking',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: '--no-build',
|
|
68
|
-
description: 'Do not build the solution',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: '--no-deploy',
|
|
72
|
-
description: 'Do not deploy the app',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: '--deploy-from-layout',
|
|
76
|
-
description: 'Force deploy from layout',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: '--sln [string]',
|
|
80
|
-
description: "Override the app solution file determined by 'react-native config', e.g. windows\\myApp.sln",
|
|
81
|
-
default: undefined,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: '--proj [string]',
|
|
85
|
-
description: "Override the app project file determined by 'react-native config', e.g. windows\\myApp\\myApp.vcxproj",
|
|
86
|
-
default: undefined,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: '--msbuildprops [string]',
|
|
90
|
-
description: 'Comma separated props to pass to msbuild, eg: prop1=value1,prop2=value2',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: '--buildLogDirectory [string]',
|
|
94
|
-
description: 'Optional directory where msbuild log files should be stored',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: '--info',
|
|
98
|
-
description: 'Dump environment information',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: '--direct-debugging [number]',
|
|
102
|
-
description: 'Enable direct debugging on specified port',
|
|
103
|
-
parse: parseDirectDebuggingPort,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: '--no-telemetry',
|
|
107
|
-
description: 'Disables sending telemetry that allows analysis of usage and failures of the react-native-windows CLI',
|
|
108
|
-
},
|
|
109
|
-
];
|
|
110
|
-
function parseBuildArch(arg) {
|
|
111
|
-
const supportedArches = ['x86', 'x64', 'ARM64'];
|
|
112
|
-
for (const supported of supportedArches) {
|
|
113
|
-
if (arg.toLowerCase() === supported.toLowerCase()) {
|
|
114
|
-
return supported;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
errorOut(`Unrecognized --arch '${arg}'. Expected one of ${supportedArches}`);
|
|
118
|
-
}
|
|
119
|
-
function parseDirectDebuggingPort(arg) {
|
|
120
|
-
const num = parseInt(arg, 10);
|
|
121
|
-
if (!Number.isInteger(num)) {
|
|
122
|
-
errorOut(`Expected argument '--direct-debugging' to be a number`);
|
|
123
|
-
}
|
|
124
|
-
if (num < 1024 || num >= 65535) {
|
|
125
|
-
errorOut('Direct debugging port it out of range');
|
|
126
|
-
}
|
|
127
|
-
return num;
|
|
128
|
-
}
|
|
129
|
-
function errorOut(arg) {
|
|
130
|
-
console.error(arg);
|
|
131
|
-
process.exit(1);
|
|
132
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.runWindowsOptions = void 0;
|
|
9
|
+
const telemetry_1 = require("@react-native-windows/telemetry");
|
|
10
|
+
exports.runWindowsOptions = [
|
|
11
|
+
{
|
|
12
|
+
name: '--release',
|
|
13
|
+
description: 'Specifies a release build',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: '--root [string]',
|
|
17
|
+
description: 'Override the root directory for the windows build which contains the windows folder.',
|
|
18
|
+
default: config => config.root,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: '--arch [string]',
|
|
22
|
+
description: 'The build architecture (ARM64, x86, x64)',
|
|
23
|
+
default: parseBuildArch((0, telemetry_1.deviceArchitecture)()),
|
|
24
|
+
parse: parseBuildArch,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '--singleproc',
|
|
28
|
+
description: 'Disables multi-proc build',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: '--emulator',
|
|
32
|
+
description: 'Deploys the app to an emulator',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: '--device',
|
|
36
|
+
description: 'Deploys the app to a connected device',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: '--target [string]',
|
|
40
|
+
description: 'Deploys the app to the specified GUID for a device.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: '--remote-debugging',
|
|
44
|
+
description: 'Deploys the app in remote debugging mode.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: '--logging',
|
|
48
|
+
description: 'Enables logging',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: '--no-packager',
|
|
52
|
+
description: 'Do not launch packager while building',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: '--bundle',
|
|
56
|
+
description: 'Enable Bundle configuration and it would be ReleaseBundle/DebugBundle other than Release/Debug',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: '--no-launch',
|
|
60
|
+
description: 'Do not launch the app after deployment',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: '--no-autolink',
|
|
64
|
+
description: 'Do not run autolinking',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: '--no-build',
|
|
68
|
+
description: 'Do not build the solution',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: '--no-deploy',
|
|
72
|
+
description: 'Do not deploy the app',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: '--deploy-from-layout',
|
|
76
|
+
description: 'Force deploy from layout',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: '--sln [string]',
|
|
80
|
+
description: "Override the app solution file determined by 'react-native config', e.g. windows\\myApp.sln",
|
|
81
|
+
default: undefined,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: '--proj [string]',
|
|
85
|
+
description: "Override the app project file determined by 'react-native config', e.g. windows\\myApp\\myApp.vcxproj",
|
|
86
|
+
default: undefined,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: '--msbuildprops [string]',
|
|
90
|
+
description: 'Comma separated props to pass to msbuild, eg: prop1=value1,prop2=value2',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: '--buildLogDirectory [string]',
|
|
94
|
+
description: 'Optional directory where msbuild log files should be stored',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: '--info',
|
|
98
|
+
description: 'Dump environment information',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: '--direct-debugging [number]',
|
|
102
|
+
description: 'Enable direct debugging on specified port',
|
|
103
|
+
parse: parseDirectDebuggingPort,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: '--no-telemetry',
|
|
107
|
+
description: 'Disables sending telemetry that allows analysis of usage and failures of the react-native-windows CLI',
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
function parseBuildArch(arg) {
|
|
111
|
+
const supportedArches = ['x86', 'x64', 'ARM64'];
|
|
112
|
+
for (const supported of supportedArches) {
|
|
113
|
+
if (arg.toLowerCase() === supported.toLowerCase()) {
|
|
114
|
+
return supported;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
errorOut(`Unrecognized --arch '${arg}'. Expected one of ${supportedArches}`);
|
|
118
|
+
}
|
|
119
|
+
function parseDirectDebuggingPort(arg) {
|
|
120
|
+
const num = parseInt(arg, 10);
|
|
121
|
+
if (!Number.isInteger(num)) {
|
|
122
|
+
errorOut(`Expected argument '--direct-debugging' to be a number`);
|
|
123
|
+
}
|
|
124
|
+
if (num < 1024 || num >= 65535) {
|
|
125
|
+
errorOut('Direct debugging port it out of range');
|
|
126
|
+
}
|
|
127
|
+
return num;
|
|
128
|
+
}
|
|
129
|
+
function errorOut(arg) {
|
|
130
|
+
console.error(arg);
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
133
133
|
//# sourceMappingURL=runWindowsOptions.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
export {};
|