-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some packages have missing dependencies #884
Comments
christophehurpeau
added a commit
to christophehurpeau/babel-minify
that referenced
this issue
Aug 3, 2018
…gin to prevent from happening again fixes babel#884
christophehurpeau
added a commit
to christophehurpeau/babel-minify
that referenced
this issue
Aug 3, 2018
…gin to prevent from happening again fixes babel#884
This issue seems to prevent the use of minify with pnpm. |
@gilly3 In the meantime, you can use the following const utils = require("@pnpm/hook-utils");
/** @type {import("@pnpm/hook-utils").PnpmHooks} */
exports.hooks = {
readPackage(packageJson, context) {
const pkg = utils.createReadPackageUtils(packageJson, context);
const dependencies = packageJson.dependencies || {};
switch (packageJson.name) {
case "babel-plugin-minify-guarded-expressions":
case "babel-plugin-minify-simplify":
if (!dependencies["babel-helper-evaluate-path"])
pkg.setDependency("babel-helper-evaluate-path", "0.5.0");
break;
}
pkg.logChanges();
return packageJson;
},
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
babel-helper-evaluate-path
babel-helper-evaluate-path
These were the ones I ran into but there might be more.
The text was updated successfully, but these errors were encountered: