mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	skip postinstall during dev/publish
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "react-native-update", | ||||
|   "version": "10.28.6", | ||||
|   "version": "10.28.7", | ||||
|   "description": "react-native hot update", | ||||
|   "main": "src/index", | ||||
|   "scripts": { | ||||
| @@ -75,5 +75,6 @@ | ||||
|     "react-native": "0.73", | ||||
|     "ts-jest": "^29.2.5", | ||||
|     "typescript": "^5.6.3" | ||||
|   } | ||||
|   }, | ||||
|   "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" | ||||
| } | ||||
|   | ||||
| @@ -1,3 +1,10 @@ | ||||
| const ownPackageJson = require('../package.json'); | ||||
|  | ||||
| if (process.env.npm_package_name === ownPackageJson.name) { | ||||
|   console.log('Skipping postinstall during local development.'); | ||||
|   process.exit(0); | ||||
| } | ||||
|  | ||||
| const fs = require('fs'); | ||||
| const path = require('path'); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm