Flags
Overview
The flags field in miso.json allows you to configure default flags for core package manager commands. Flags from the configuration are prepended to command-line arguments, so for commands that accept extra flags (add, remove, dev) your CLI arguments layer on top when needed.
Configuration
Add a flags object to your miso.json:
>miso.json
{
"flags": {
"add": ["--save-dev"],
"remove": ["--recursive"],
"install": ["--frozen-lockfile"],
"dev": ["--host"]
}
}Examples
Add
>miso.json
{
"flags": {
"add": ["--save-dev"]
}
}Usage:
miso add react
# Executes: pnpm add --save-dev react
miso add react --peer
# Executes: pnpm add --save-dev react --peerInstall
>miso.json
{
"flags": {
"install": ["--frozen-lockfile"]
}
}Usage:
miso install
# Executes: pnpm install --frozen-lockfilemiso install runs with your configured flags only — extra flags typed after miso install aren’t forwarded, so keep install flags in miso.json.
Last updated on