@react-native-windows/cli 0.0.0-canary.169 → 0.0.0-canary.170
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.
|
@@ -22,6 +22,7 @@ function getHealthChecks() {
|
|
|
22
22
|
label: 'Windows',
|
|
23
23
|
healthchecks: [{
|
|
24
24
|
label: 'Failed to enumerate health checks',
|
|
25
|
+
description: 'Failed to enumerate health checks',
|
|
25
26
|
getDiagnostics: async () => ({ needsToBeFixed: true }),
|
|
26
27
|
runAutomaticFix: async ({ loader }) => { loader.fail(); },
|
|
27
28
|
}]
|
|
@@ -42,6 +43,7 @@ function getHealthChecksUnsafe() {
|
|
|
42
43
|
const [optional, id, name] = dep;
|
|
43
44
|
return {
|
|
44
45
|
label: name,
|
|
46
|
+
description: name,
|
|
45
47
|
// The schema check of react-native doctor requires this to be a string, although it should be a boolean
|
|
46
48
|
// Enable this once we pick up a new version of the CLI that includes https://github.com/react-native-community/cli/pull/1367
|
|
47
49
|
isRequired: optional,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthChecks.js","sourceRoot":"","sources":["../src/healthChecks.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,MAAM,KAAK,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,EAAE,EAAC,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,0CAA0C,EAAE,EAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAC,CAAC,CAAC,CAAC;AAC3G,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAChE,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC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O;4BACL,cAAc;yBACf,CAAA;oBACH,CAAC;oBACD,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE;wBAC3D,MAAM,OAAO,GAAG,GAAG,gCAAU,8CAA8C,gBAAgB,YAAY,EAAE,EAAE,CAAC;wBAC5G,IAAI;4BACF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;4BAChE,IAAI,QAAQ,EAAE;gCACZ,qBAAqB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,oCAAoC,EAAE,GAAG,EAAE,CAAC,CAAC;gCAC3F,MAAM,CAAC,IAAI,EAAE,CAAC;6BACf;iCAAM;gCACL,MAAM,CAAC,OAAO,EAAE,CAAC;6BAClB;yBACF;wBAAC,WAAM;4BACN,qBAAqB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,oCAAoC,EAAE,GAAG,EAAE,CAAC,CAAC;4BAC3F,MAAM,CAAC,IAAI,EAAE,CAAC;yBACf;oBACH,CAAC;iBACsB,CAAA;YAC3B,CAAC,CAAC;SACL;KAAC,CAAC;AACP,CAAC","sourcesContent":["import path from 'path';\n\nconst rnDir = path.dirname(require.resolve('react-native/package.json', {paths: [process.cwd()]}));\nconst cliDir = path.dirname(require.resolve('@react-native-community/cli/package.json', {paths: [rnDir]}));\nconst execaPath = require.resolve('execa', { paths: [cliDir] });\nconst execa = require(execaPath);\n\nimport type {HealthCheckCategory, HealthCheckInterface} from '@react-native-community/cli-doctor/build/types';\nimport { powershell } from './runWindows/utils/commandWithProgress';\nimport { HealthCheckList } from './healthCheckList';\n\nexport function getHealthChecks(): HealthCheckCategory[] | undefined {\n // #8471: There are known cases where the dependencies script will error out.\n // Fail gracefully if that happens in the meantime.\n try {\n return getHealthChecksUnsafe();\n } catch {\n return [{\n label: 'Windows',\n healthchecks: [{\n label: 'Failed to enumerate health checks',\n description: 'Failed to enumerate health checks',\n getDiagnostics: async () => ({needsToBeFixed: true}),\n runAutomaticFix: async ({loader}) => {loader.fail()},\n }]\n }];\n }\n}\n\nfunction getHealthChecksUnsafe(): HealthCheckCategory[] | undefined {\n// All our health checks are windows only...\n if (process.platform !== 'win32') {\n return undefined;\n }\n\n const rnwDepScriptPath = path.join(path.dirname(require.resolve(\n 'react-native-windows/package.json',\n {paths: [process.cwd()]})), 'Scripts/rnw-dependencies.ps1');\n \n return [\n {\n label: 'Windows',\n healthchecks:\n HealthCheckList.map((dep: [boolean, string, string]) => {\n const [optional, id, name] = dep;\n return {\n label: name,\n description: name,\n // The schema check of react-native doctor requires this to be a string, although it should be a boolean\n // Enable this once we pick up a new version of the CLI that includes https://github.com/react-native-community/cli/pull/1367\n isRequired: optional, \n getDiagnostics: async () => {\n let needsToBeFixed = true;\n try {\n await execa(`\"${powershell}\" -ExecutionPolicy Unrestricted -NoProfile \"${rnwDepScriptPath}\" -NoPrompt -Check ${id}`);\n needsToBeFixed = false;\n } catch {\n }\n return {\n needsToBeFixed,\n }\n },\n runAutomaticFix: async ({ loader, logManualInstallation }) => {\n const command = `${powershell} -ExecutionPolicy Unrestricted -NoProfile \"${rnwDepScriptPath}\" -Check ${id}`;\n try {\n const { exitCode } = await execa(command, { stdio: 'inherit' });\n if (exitCode) {\n logManualInstallation({ command, healthcheck: `react-native-windows dependency \"${id}\"` });\n loader.fail();\n } else {\n loader.succeed();\n }\n } catch {\n logManualInstallation({ command, healthcheck: `react-native-windows dependency \"${id}\"` });\n loader.fail();\n }\n }\n } as HealthCheckInterface\n })\n }];\n }"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-windows/cli",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.170",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"watch": "rnw-scripts watch"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@react-native-windows/codegen": "0.0.0-canary.
|
|
21
|
-
"@react-native-windows/fs": "^0.0.0-canary.
|
|
22
|
-
"@react-native-windows/package-utils": "^0.0.0-canary.
|
|
23
|
-
"@react-native-windows/telemetry": "^0.0.0-canary.
|
|
20
|
+
"@react-native-windows/codegen": "0.0.0-canary.58",
|
|
21
|
+
"@react-native-windows/fs": "^0.0.0-canary.20",
|
|
22
|
+
"@react-native-windows/package-utils": "^0.0.0-canary.46",
|
|
23
|
+
"@react-native-windows/telemetry": "^0.0.0-canary.68",
|
|
24
24
|
"@xmldom/xmldom": "^0.7.7",
|
|
25
25
|
"chalk": "^4.1.0",
|
|
26
26
|
"cli-spinners": "^2.2.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"xpath": "^0.0.27"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@react-native-community/cli-doctor": "^
|
|
44
|
-
"@react-native-community/cli-types": "^
|
|
43
|
+
"@react-native-community/cli-doctor": "^12.0.0-alpha.3",
|
|
44
|
+
"@react-native-community/cli-types": "^12.0.0-alpha.3",
|
|
45
45
|
"@rnw-scripts/eslint-config": "1.1.16",
|
|
46
|
-
"@rnw-scripts/jest-unittest-config": "1.5.
|
|
47
|
-
"@rnw-scripts/just-task": "2.3.
|
|
46
|
+
"@rnw-scripts/jest-unittest-config": "1.5.3",
|
|
47
|
+
"@rnw-scripts/just-task": "2.3.9",
|
|
48
48
|
"@rnw-scripts/ts-config": "2.0.4",
|
|
49
49
|
"@types/chalk": "^2.2.0",
|
|
50
50
|
"@types/jest": "^29.2.2",
|