I am facing issue with yarn 3 which was working fine with yarn 1.x.
when using yarn 3 , i am adding a local module using yarn add which has some hooks defined in its package.json like as below
"scripts": {
"install": "node ./scripts/install.js",
"postinstall":"node ./scripts/post_install.js",
"uninstall": "node ./scripts/cleanup.js"
},
when i remove the module using yarn remove Module_name then cleanup.js is not getting executed and neither i get any error.
Please help
Env: Mac OS, NodeJs: 18.x