0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/yarn-plugins/plugin-postinstall.js
Juan Picado 558fcafc71
build: format code prettier, enable ci (#2886)
* fix: format code prettier, enable ci

* chore: add trivago import prettier pluggin
2022-01-09 20:51:50 +01:00

16 lines
430 B
JavaScript

/**
* Not used at this moment, but I'll leave it here for future usage.
* Ref https://github.com/verdaccio/verdaccio/pull/2253#discussion_r632052482
*/
module.exports = {
name: `plugin-postinstall`,
factory: () => ({
hooks: {
beforeWorkspacePacking(_workspace, data) {
if ('scripts' in data && 'postinstall' in data.scripts) {
delete data.scripts.postinstall;
}
},
},
}),
};