@pnpm/pnpmfile
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -28,2 +28,9 @@ "use strict"; | ||
}); | ||
if (typeof pnpmfile === 'undefined') { | ||
logger_1.default.warn({ | ||
message: `Ignoring the pnpmfile at "${pnpmFilePath}". It exports "undefined".`, | ||
prefix, | ||
}); | ||
return undefined; | ||
} | ||
if (((_b = (_a = pnpmfile) === null || _a === void 0 ? void 0 : _a.hooks) === null || _b === void 0 ? void 0 : _b.readPackage) && typeof pnpmfile.hooks.readPackage !== 'function') { | ||
@@ -30,0 +37,0 @@ throw new TypeError('hooks.readPackage should be a function'); |
{ | ||
"name": "@pnpm/pnpmfile", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Reading a pnpmfile.js", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"tsc": "rimraf lib && tsc", | ||
"test": "pnpm run tsc", | ||
"test": "pnpm run tsc && ts-node test --type-check", | ||
"prepublishOnly": "pnpm run tsc" | ||
@@ -19,0 +19,0 @@ }, |
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
8741
143