@rnw-scripts/package-utils
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Fri, 20 Nov 2020 05:06:58 GMT", | ||
"date": "Tue, 24 Nov 2020 05:06:33 GMT", | ||
"tag": "@rnw-scripts/package-utils_v0.0.11", | ||
"version": "0.0.11", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Add more eslint rules", | ||
"author": "ngerlem@microsoft.com", | ||
"commit": "adc0617836a0fba4112646595645e65f93e0106f", | ||
"package": "@rnw-scripts/package-utils" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 20 Nov 2020 05:08:43 GMT", | ||
"tag": "@rnw-scripts/package-utils_v0.0.10", | ||
@@ -8,0 +23,0 @@ "version": "0.0.10", |
# Change Log - @rnw-scripts/package-utils | ||
This log was last generated on Thu, 01 Oct 2020 05:08:11 GMT and should not be manually modified. | ||
This log was last generated on Tue, 24 Nov 2020 05:06:33 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.0.11 | ||
Tue, 24 Nov 2020 05:06:33 GMT | ||
### Patches | ||
- Add more eslint rules (ngerlem@microsoft.com) | ||
## 0.0.8 | ||
@@ -8,0 +16,0 @@ |
@@ -11,3 +11,3 @@ /** | ||
export declare class NpmPackage { | ||
private pkgPath; | ||
private readonly pkgPath; | ||
protected pkgJson: any; | ||
@@ -14,0 +14,0 @@ /** |
@@ -46,7 +46,12 @@ "use strict"; | ||
const jsonPath = path.join(pkgPath, 'package.json'); | ||
const jsonBuffer = await fs.promises.readFile(jsonPath); | ||
if (!jsonBuffer) { | ||
return null; | ||
try { | ||
const jsonBuffer = await fs.promises.readFile(jsonPath); | ||
return new WritableNpmPackage(pkgPath, JSON.parse(jsonBuffer.toString())); | ||
} | ||
return new WritableNpmPackage(pkgPath, JSON.parse(jsonBuffer.toString())); | ||
catch (ex) { | ||
if (ex.code === 'ENOENT') { | ||
return null; | ||
} | ||
throw ex; | ||
} | ||
} | ||
@@ -53,0 +58,0 @@ /** |
{ | ||
"name": "@rnw-scripts/package-utils", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"dependencies": { | ||
"@rnw-scripts/find-repo-root": "^0.0.13", | ||
"@rnw-scripts/find-repo-root": "^0.0.14", | ||
"get-monorepo-packages": "^1.2.0", | ||
@@ -20,3 +20,3 @@ "lodash": "^4.17.15" | ||
"devDependencies": { | ||
"@rnw-scripts/eslint-config": "0.1.5", | ||
"@rnw-scripts/eslint-config": "0.1.6", | ||
"@rnw-scripts/just-task": "0.0.6", | ||
@@ -23,0 +23,0 @@ "@rnw-scripts/ts-config": "0.1.0", |
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
14812
325
+ Added@rnw-scripts/find-repo-root@0.0.14(transitive)
- Removed@rnw-scripts/find-repo-root@0.0.13(transitive)