update build script

This commit is contained in:
Salakar 2018-08-05 04:08:59 +01:00
parent 19b97cdd8e
commit 42e18c8f52
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "genversion lib/version.js && npm run validate-ts-declarations && npm run build-src && npm run build-flow", "build": "genversion src/version.js && npm run validate-ts-declarations && npm run build-src && npm run build-flow",
"build-flow": "flow-copy-source -i */__tests__* src dist", "build-flow": "flow-copy-source -i */__tests__* src dist",
"build-src": "BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files", "build-src": "BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files",
"build-src-watch": "genversion src/version.js && BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files --watch", "build-src-watch": "genversion src/version.js && BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files --watch",