[build] remove deprecated `postinstall-build` package & script and update/cleanup package scripts + devDeps

This commit is contained in:
Salakar 2018-08-24 15:34:20 +01:00
parent 53b0126c9b
commit 4485c5eb73
2 changed files with 24 additions and 29 deletions

25
package-lock.json generated
View File

@ -3073,12 +3073,12 @@
}
},
"eslint-config-prettier": {
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-2.10.0.tgz",
"integrity": "sha512-Mhl90VLucfBuhmcWBgbUNtgBiK955iCDK1+aHAz7QfDQF6wuzWZ6JjihZ3ejJoGlJWIuko7xLqNm8BA5uenKhA==",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-3.0.1.tgz",
"integrity": "sha512-vA0TB8HCx/idHXfKHYcg9J98p0Q8nkfNwNAoP7e+ywUidn6ScaFS5iqncZAHPz+/a0A/tp657ulFHFx/2JDP4Q==",
"dev": true,
"requires": {
"get-stdin": "^5.0.1"
"get-stdin": "^6.0.0"
}
},
"eslint-import-resolver-node": {
@ -4381,9 +4381,9 @@
"dev": true
},
"get-stdin": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
"integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=",
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
"integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
"dev": true
},
"get-stream": {
@ -7070,11 +7070,6 @@
"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
"dev": true
},
"postinstall-build": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/postinstall-build/-/postinstall-build-5.0.2.tgz",
"integrity": "sha512-Rh9azMSTvDWnDhLS8FG155kVVBwVPjLcQZrjZy4crbVPagOpUrr/vGOcBfwaii2A2yGK7jMtK7TBWw9N6amUNw=="
},
"prelude-ls": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
@ -7088,9 +7083,9 @@
"dev": true
},
"prettier": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.0.tgz",
"integrity": "sha512-KtQ2EGaUwf2EyDfp1fxyEb0PqGKakVm0WyXwDt6u+cAoxbO2Z2CwKvOe3+b4+F2IlO9lYHi1kqFuRM70ddBnow==",
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.2.tgz",
"integrity": "sha512-McHPg0n1pIke+A/4VcaS2en+pTNjy4xF+Uuq86u/5dyDO59/TtFZtQ708QIRkEZ3qwKz3GVkVa6mpxK/CpB8Rg==",
"dev": true
},
"pretty-format": {

View File

@ -6,19 +6,20 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"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": "genversion src/version.js && npm run build-src",
"build-src": "BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files",
"build-flow": "flow-copy-source -i */__tests__* src dist",
"build-src-watch": "genversion src/version.js && BABEL_ENV=publish babel src -d dist --ignore __tests__ --copy-files --watch",
"clean": "rimraf dist/",
"flow": "flow",
"format:assets": "prettier --ignore-path .gitignore --write \"**/*.{json,md}\"",
"format": "npm run format:assets && npm run lint -- --fix",
"lint": "eslint ./src",
"clean": "rimraf dist/",
"validate-ts-declarations": "tsc --project ./",
"validate-flow-declarations": "flow",
"format": "npm run format:assets && npm run lint -- --fix",
"format:assets": "prettier --ignore-path .gitignore --write \"**/*.{json,md}\"",
"prepare": "npm run clean && npm run build && npm run build-flow",
"precommit": "lint-staged",
"prepublish": "npm run clean && npm run build",
"postinstall": "postinstall-build dist && opencollective-postinstall || exit 0",
"validate-ts-declarations": "tsc --project ./"
"postinstall": "opencollective-postinstall || exit 0",
"prepublishOnly": "npm run validate-ts-declarations && npm run validate-flow-declarations"
},
"repository": {
"type": "git",
@ -74,14 +75,14 @@
"fbjs": "*"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/cli": "7.0.0-beta.47",
"@babel/core": "7.0.0-beta.47",
"@invertase/babel-preset-react-native-syntax": "^0.1.0",
"babel-eslint": "^8.2.6",
"babel-preset-react-native": "^5.0.2",
"@invertase/babel-preset-react-native-syntax": "^0.1.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
@ -92,7 +93,7 @@
"genversion": "^2.1.0",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"prettier": "1.14.0",
"prettier": "^1.14.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-native": "^0.56.0",
@ -100,7 +101,6 @@
},
"dependencies": {
"opencollective-postinstall": "^2.0.0",
"postinstall-build": "^5.0.1",
"prop-types": "^15.6.2"
},
"rnpm": {