Pinst
🍺 dev only postinstall hooks (package.json)
Install / Use
/learn @typicode/PinstREADME
pinst

pinstlets you havepostinstallhook that runs only in dev 🍺
Important if your project is using npm or pnpm, you can achieve the desired effect by setting a prepare hook instead. pinst is mainly useful for Yarn 2+ since it doesn't support prepare hook. See https://yarnpkg.com/advanced/lifecycle-scripts
Usage
// package.json
{
"scripts": {
"postinstall": "<some dev only command>",
"prepack": "pinst --disable",
"postpack": "pinst --enable"
}
}
On prepack, postinstall will be renamed to _postinstall (disabled)
On postpack, it will be renamed back to postinstall (enabled)
CLI
pinst accepts the following flags:
--enable, -e Enable postinstall hook
--disable, -d Disable postinstall hook
--silent, -s
Tips
By inverting commands, you can also use pinst to enable postinstall for your users only and not yourself.
pinst also supports install alias.
License
MIT - Typicode :cactus:
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
