@react-native-windows/cli
Advanced tools
Comparing version 0.64.1 to 0.64.2
@@ -5,3 +5,24 @@ { | ||
{ | ||
"date": "Mon, 22 Mar 2021 17:06:25 GMT", | ||
"date": "Mon, 29 Mar 2021 16:06:33 GMT", | ||
"tag": "@react-native-windows/cli_v0.64.2", | ||
"version": "0.64.2", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "[0.64] Fix app template to use app.json's name for main component name (#7464)", | ||
"author": "jthysell@microsoft.com", | ||
"commit": "dd05bb443c7ba969de694a6727001f1b5dc25f21", | ||
"package": "@react-native-windows/cli" | ||
}, | ||
{ | ||
"comment": "Autolinking doesn't add a project marked as a non-direct dependency", | ||
"author": "asklar@microsoft.com", | ||
"commit": "d821f14b2e6a866f6ec7972771c693223d363974", | ||
"package": "@react-native-windows/cli" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 22 Mar 2021 17:06:53 GMT", | ||
"tag": "@react-native-windows/cli_v0.64.1", | ||
@@ -8,0 +29,0 @@ "version": "0.64.1", |
# Change Log - @react-native-windows/cli | ||
This log was last generated on Mon, 22 Mar 2021 17:06:25 GMT and should not be manually modified. | ||
This log was last generated on Mon, 29 Mar 2021 16:06:33 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.64.2 | ||
Mon, 29 Mar 2021 16:06:33 GMT | ||
### Patches | ||
- [0.64] Fix app template to use app.json's name for main component name (#7464) (jthysell@microsoft.com) | ||
- Autolinking doesn't add a project marked as a non-direct dependency (asklar@microsoft.com) | ||
## 0.64.1 | ||
Mon, 22 Mar 2021 17:06:25 GMT | ||
Mon, 22 Mar 2021 17:06:53 GMT | ||
@@ -11,0 +20,0 @@ ### Patches |
@@ -18,2 +18,3 @@ "use strict"; | ||
const _ = require("lodash"); | ||
const findUp = require("find-up"); | ||
const configUtils_1 = require("../config/configUtils"); | ||
@@ -99,2 +100,7 @@ const generator_common_1 = require("../generator-common"); | ||
const currentUser = username.sync(); // Gets the current username depending on the platform. | ||
let mainComponentName = newProjectName; | ||
const appJsonPath = await findUp('app.json', { cwd: destPath }); | ||
if (appJsonPath) { | ||
mainComponentName = JSON.parse(fs.readFileSync(appJsonPath, 'utf8')).name; | ||
} | ||
const certificateThumbprint = projectType === 'app' | ||
@@ -164,2 +170,3 @@ ? await generateCertificate(srcPath, destPath, newProjectName, currentUser) | ||
languageIsCpp: language === 'cpp', | ||
mainComponentName: mainComponentName, | ||
// Visual Studio is very picky about the casing of the guids for projects, project references and the solution | ||
@@ -166,0 +173,0 @@ // https://www.bing.com/search?q=visual+studio+project+guid+casing&cvid=311a5ad7f9fc41089507b24600d23ee7&FORM=ANAB01&PC=U531 |
@@ -178,3 +178,3 @@ "use strict"; | ||
item in project && | ||
project[item] && | ||
project[item] != '' && | ||
!project[item].toString().startsWith('Error: ')); | ||
@@ -181,0 +181,0 @@ }); |
{ | ||
"name": "@react-native-windows/cli", | ||
"version": "0.64.1", | ||
"version": "0.64.2", | ||
"license": "MIT", | ||
@@ -25,2 +25,3 @@ "main": "lib-commonjs/index.js", | ||
"envinfo": "^7.5.0", | ||
"find-up": "^4.1.0", | ||
"glob": "^7.1.1", | ||
@@ -27,0 +28,0 @@ "inquirer": "^3.0.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
342719
4771
17
+ Addedfind-up@^4.1.0