@rnx-kit/tools-node
Advanced tools
Comparing version 1.2.6 to 1.2.7
# Change Log - @rnx-kit/tools-node | ||
This log was last generated on Tue, 30 Nov 2021 17:22:28 GMT and should not be manually modified. | ||
## 1.2.7 | ||
<!-- Start content --> | ||
### Patch Changes | ||
- ae87498: `findPackageDependencyDir` now also accepts package names | ||
## 1.2.6 | ||
Tue, 30 Nov 2021 17:22:28 GMT | ||
Tue, 30 Nov 2021 17:24:14 GMT | ||
@@ -11,0 +13,0 @@ ### Patches |
@@ -117,3 +117,3 @@ /** | ||
*/ | ||
export declare function findPackageDependencyDir(ref: PackageRef, options?: FindPackageDependencyOptions): string | undefined; | ||
export declare function findPackageDependencyDir(ref: string | PackageRef, options?: FindPackageDependencyOptions): string | undefined; | ||
//# sourceMappingURL=package.d.ts.map |
@@ -143,5 +143,6 @@ "use strict"; | ||
var _a; | ||
return find_up_1.default.sync(path_1.default.join("node_modules", (_a = ref.scope) !== null && _a !== void 0 ? _a : "", ref.name), Object.assign(Object.assign({}, (0, properties_1.pickValues)(options !== null && options !== void 0 ? options : {}, ["startDir", "allowSymlinks"], ["cwd", "allowSymlinks"])), { type: "directory" })); | ||
const pkgName = typeof ref === "string" ? ref : path_1.default.join((_a = ref.scope) !== null && _a !== void 0 ? _a : "", ref.name); | ||
return find_up_1.default.sync(path_1.default.join("node_modules", pkgName), Object.assign(Object.assign({}, (0, properties_1.pickValues)(options !== null && options !== void 0 ? options : {}, ["startDir", "allowSymlinks"], ["cwd", "allowSymlinks"])), { type: "directory" })); | ||
} | ||
exports.findPackageDependencyDir = findPackageDependencyDir; | ||
//# sourceMappingURL=package.js.map |
{ | ||
"name": "@rnx-kit/tools-node", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "A collection of supplemental NodeJS functions and types", | ||
@@ -40,3 +40,3 @@ "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/tools-node#readme", | ||
"@rnx-kit/scripts": "*", | ||
"@types/node": "^14.15.0", | ||
"@types/node": "^16.0.0", | ||
"jest-extended": "^0.11.5", | ||
@@ -43,0 +43,0 @@ "temp-dir": "^2.0.0" |
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
43533
31
577