mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
69d7df20d8
* chore: enable pnp yarn * chore: ignore pnp * fix type issues on run eslint * add missing dependency and fix some errors * fix most of the errors some were just disabled, already fixed in master * add missing jest-config * update jest@26 align with other deps * add missing @babel/register * clean up * use yarn node * use yarn node on release * chore: add husky 6 * chore: add husky 6 * chore: lint-stage * chore: test * chore: add hook git * chore: test * chore: test * update deps * chore: fix commit lint * fix docker run * update git ignore
17 lines
404 B
JavaScript
17 lines
404 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;
|
|
}
|
|
},
|
|
},
|
|
}),
|
|
};
|