[build] remove deprecated `postinstall-build` package & script and update/cleanup package scripts + devDeps
This commit is contained in:
parent
53b0126c9b
commit
4485c5eb73
|
@ -3073,12 +3073,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-config-prettier": {
|
"eslint-config-prettier": {
|
||||||
"version": "2.10.0",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-2.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-3.0.1.tgz",
|
||||||
"integrity": "sha512-Mhl90VLucfBuhmcWBgbUNtgBiK955iCDK1+aHAz7QfDQF6wuzWZ6JjihZ3ejJoGlJWIuko7xLqNm8BA5uenKhA==",
|
"integrity": "sha512-vA0TB8HCx/idHXfKHYcg9J98p0Q8nkfNwNAoP7e+ywUidn6ScaFS5iqncZAHPz+/a0A/tp657ulFHFx/2JDP4Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"get-stdin": "^5.0.1"
|
"get-stdin": "^6.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-import-resolver-node": {
|
"eslint-import-resolver-node": {
|
||||||
|
@ -4381,9 +4381,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"get-stdin": {
|
"get-stdin": {
|
||||||
"version": "5.0.1",
|
"version": "6.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
|
||||||
"integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=",
|
"integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"get-stream": {
|
"get-stream": {
|
||||||
|
@ -7070,11 +7070,6 @@
|
||||||
"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
|
"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
|
||||||
"dev": true
|
"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": {
|
"prelude-ls": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
||||||
|
@ -7088,9 +7083,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "1.14.0",
|
"version": "1.14.2",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.2.tgz",
|
||||||
"integrity": "sha512-KtQ2EGaUwf2EyDfp1fxyEb0PqGKakVm0WyXwDt6u+cAoxbO2Z2CwKvOe3+b4+F2IlO9lYHi1kqFuRM70ddBnow==",
|
"integrity": "sha512-McHPg0n1pIke+A/4VcaS2en+pTNjy4xF+Uuq86u/5dyDO59/TtFZtQ708QIRkEZ3qwKz3GVkVa6mpxK/CpB8Rg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"pretty-format": {
|
"pretty-format": {
|
||||||
|
|
28
package.json
28
package.json
|
@ -6,19 +6,20 @@
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "genversion src/version.js && npm run validate-ts-declarations && npm run build-src && npm run build-flow",
|
"build": "genversion src/version.js && npm run build-src",
|
||||||
"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-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",
|
"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",
|
"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",
|
"precommit": "lint-staged",
|
||||||
"prepublish": "npm run clean && npm run build",
|
"postinstall": "opencollective-postinstall || exit 0",
|
||||||
"postinstall": "postinstall-build dist && opencollective-postinstall || exit 0",
|
"prepublishOnly": "npm run validate-ts-declarations && npm run validate-flow-declarations"
|
||||||
"validate-ts-declarations": "tsc --project ./"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -74,14 +75,14 @@
|
||||||
"fbjs": "*"
|
"fbjs": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.0.0-beta.47",
|
|
||||||
"@babel/cli": "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-eslint": "^8.2.6",
|
||||||
"babel-preset-react-native": "^5.0.2",
|
"babel-preset-react-native": "^5.0.2",
|
||||||
"@invertase/babel-preset-react-native-syntax": "^0.1.0",
|
|
||||||
"eslint": "^5.3.0",
|
"eslint": "^5.3.0",
|
||||||
"eslint-config-airbnb": "^17.0.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-flowtype": "^2.50.0",
|
||||||
"eslint-plugin-import": "^2.13.0",
|
"eslint-plugin-import": "^2.13.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.1.1",
|
"eslint-plugin-jsx-a11y": "^6.1.1",
|
||||||
|
@ -92,7 +93,7 @@
|
||||||
"genversion": "^2.1.0",
|
"genversion": "^2.1.0",
|
||||||
"husky": "^0.14.3",
|
"husky": "^0.14.3",
|
||||||
"lint-staged": "^7.2.0",
|
"lint-staged": "^7.2.0",
|
||||||
"prettier": "1.14.0",
|
"prettier": "^1.14.2",
|
||||||
"react": "^16.4.1",
|
"react": "^16.4.1",
|
||||||
"react-dom": "^16.4.1",
|
"react-dom": "^16.4.1",
|
||||||
"react-native": "^0.56.0",
|
"react-native": "^0.56.0",
|
||||||
|
@ -100,7 +101,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"opencollective-postinstall": "^2.0.0",
|
"opencollective-postinstall": "^2.0.0",
|
||||||
"postinstall-build": "^5.0.1",
|
|
||||||
"prop-types": "^15.6.2"
|
"prop-types": "^15.6.2"
|
||||||
},
|
},
|
||||||
"rnpm": {
|
"rnpm": {
|
||||||
|
|
Loading…
Reference in New Issue