jenkins-library
jenkins-library copied to clipboard
feat(npmExecuteScripts) add support for pnpm
Changes
-
Introduce a new
toolfield that can be used to fix the tool to one ofauto,npm, yarn, pnpm. -
Auto detection of tool based on lock file and installs tool/package manager globally if not present (npm install -g yarn/pnpm)
-
Tool specific commands for install and run For eg., npm get/set registry --> yarn get/set registry or pnpm get/set registry npm run script-name --> yarn run script-name or pnpm run script-name npm publish --> yarn/pnpm publish
-
[x] Tests
-
[x] Documentation
/it
/it
@anilkeshav27 if you have time, can you please check and comment?
/it
/it
quick question: is bom creation and publishing addressed?
If we boms cannot be created we should be very explicit in documentation that the step can only be used for certain cases. This should also be considered when thinking about the default setting, I guess.
pnpm is currently not supported: https://www.npmjs.com/package/@cyclonedx/bom
