packages/kbn-yarn-install-scripts/README.md
Automatic script execution is disabled in .yarnrc. This package manages node_module lifecycle scripts for install and postinstall.
The config.json file contains an array of packages with install scripts and their configured status:
{
"packages": [
{
"path": "package-name",
"lifecycle": "postinstall",
"required": true,
"reason": "reason for action"
}
]
}
path: The package path in node_modules (e.g., @elastic/eui)lifecycle: Either install or postinstallrequired: true to run the script during bootstrap, false to skip itreason: Explanation of why the script is required or notnode scripts/yarn_install_scripts <command> [options]
runRun allowed install scripts defined in config.json:
node scripts/yarn_install_scripts run
node scripts/yarn_install_scripts run --verbose # Show install logs
scanDiscovers packages with install scripts and shows whether they are run or skipped:
node scripts/yarn_install_scripts scan