Created
February 14, 2019 08:45
-
-
Save hubgit/7cfe5e83c645de8c00e30470eef57a26 to your computer and use it in GitHub Desktop.
npm scripts for typescript libraries
This file contains 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
"scripts": { | |
"build": "npm-run-all --parallel build:*", | |
"build:cjs": "tsc --outDir dist/cjs --module commonjs", | |
"build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration", | |
"dev": "npm-run-all --parallel \"build:* --watch\"", | |
"lint": "tslint --project .", | |
"prebuild": "rimraf dist", | |
"prettier": "prettier --write \"src/**/*.{ts,tsx}\" \"*.{js,json}\"", | |
"preversion": "npm-run-all --parallel typecheck lint test", | |
"test": "jest", | |
"typecheck": "tsc --noEmit", | |
"version": "yarn build" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment