diff --git a/package-lock.json b/package-lock.json index 554b27bd..79f119cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index ece638dd..d2a9fc6d 100644 --- a/package.json +++ b/package.json @@ -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",