Created
April 10, 2019 07:34
-
-
Save 1natsu172/dca6147c271322ff7fc447d41d921bed to your computer and use it in GitHub Desktop.
A strategy to automatically install @types definitely-typed at postinstall script using "npx typesync"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npm-scripts-fun", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"postinstall": "npx typesync && git diff --exit-code --quiet HEAD package.json || yarn --ignore-scripts" | |
}, | |
"dependencies": { | |
"react": "^16.8.6" | |
}, | |
"devDependencies": { | |
"@types/react": "^16.8.13" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment