Tweak where the TS validation script is run

This commit is contained in:
Chris Bianca 2018-01-30 16:43:27 +00:00
parent dd0dd7fdad
commit 57b5c8fe88
2 changed files with 8 additions and 2 deletions

6
package-lock.json generated
View File

@ -8086,6 +8086,12 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
"dev": true
},
"typescript": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz",
"integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=",
"dev": true
},
"ua-parser-js": {
"version": "0.7.17",
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz",

View File

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