Hacker News new | ask | show | jobs
by Hexshin0bi 275 days ago
"...but also disables post-install scripts by default."

in pnpm docs it says:

""" enablePrePostScripts Default: true Type: Boolean When true, pnpm will run any pre/post scripts automatically. So running pnpm foo will be like running pnpm prefoo && pnpm foo && pnpm postfoo. """

am i missing something here?

1 comments

enablePrePostScripts is about running "prebuild" and "postbuild" scripts automatically, when you run "pnpm run build"
well, it is literally in an example in the text that you provided. So, I am not sure why you confused it with postinstall lifecycle scripts.