Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postinstall-postinstall

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postinstall-postinstall - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

package.json
{
"name": "postinstall-postinstall",
"version": "1.0.0",
"version": "2.0.0",
"main": "",

@@ -5,0 +5,0 @@ "scripts": {

@@ -8,2 +8,2 @@ postinstall-postinstall

Yarn runs the `postinstall` script after `yarn`, `yarn install` and `yarn add <package>` but not after `yarn remove <package>`. If you add this package to your project, it will execute your project's `postinstall` hook even after a `yarn remove <package>`. This requires your `postinstall` script to be idempotent, becase it will be run twice for `yarn`, `yarn install`, and `yarn add <package>`
Yarn runs the `postinstall` script after `yarn`, `yarn install` and `yarn add <package>` but not after `yarn remove <package>`. If you add this package to your project, it will execute your project's `postinstall` hook even after a `yarn remove <package>`. This requires your `postinstall` script to be idempotent, because it will be run twice for `yarn`, `yarn install`, and `yarn add <package>`

@@ -14,6 +14,4 @@ const fs = require('fs')

if (packageJson.scripts && packageJson.scripts.postinstall) {
exec('npm run postinstall', {cwd: appPath})
exec('yarn run postinstall', {cwd: appPath})
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc