Browse Source

fix #4103: opencollective not found bug

zhixin 7 years ago
parent
commit
28949fdcc4
1 changed files with 5 additions and 3 deletions
  1. 5 3
      package.json

+ 5 - 3
package.json

@@ -6,6 +6,9 @@
   "directories": {
     "doc": "docs"
   },
+  "dependencies": {
+    "opencollective-postinstall": "^2.0.1"
+  },
   "devDependencies": {
     "babel-cli": "^6.26.0",
     "babel-preset-babili": "^0.1.4",
@@ -14,11 +17,10 @@
     "cssmin-cli": "^0.0.5",
     "eslint": "^4.19.1",
     "headr": "^0.0.4",
-    "npm-run-all": "^4.1.5",
-    "opencollective": "^1.0.3"
+    "npm-run-all": "^4.1.5"
   },
   "scripts": {
-    "postinstall": "opencollective postinstall || exit 0",
+    "postinstall": "opencollective-postinstall",
     "lint": "eslint src/bootstrap-table.js src/locale src/extensions/export src/extensions/editable src/extensions/toolbar src/extensions/filter-control src/extensions/cookie",
     "js:build:min": "NODE_ENV=production babel src -d dist -q && find dist -name '*.js' | sed -e 'p;s/.js/.min.js/' | xargs -n2 mv",
     "js:build:base": "babel src -d dist -q",