temporary fix vue-good-table

This commit is contained in:
Pig Fang 2018-10-09 20:57:39 +08:00
parent adff1f9c97
commit 01da6cb89f
2 changed files with 8 additions and 2 deletions

View File

@ -15,7 +15,8 @@
"lint": "eslint --ext=.js,.vue -f=beauty .",
"test": "jest",
"codecov": "codecov -F js",
"release": "yarn build && node scripts/release.js"
"release": "yarn build && node scripts/release.js",
"postinstall": "node scripts/fix-vue-good-table.js"
},
"dependencies": {
"@babel/runtime": "^7.0.0",
@ -29,7 +30,7 @@
"sweetalert2": "^7.28.1",
"toastr": "^2.1.4",
"vue": "^2.5.17",
"vue-good-table": "^2.14.1",
"vue-good-table": "^2.14.6",
"vue-upload-component": "^2.8.13",
"vuejs-paginate": "^2.0.1"
},

View File

@ -0,0 +1,5 @@
const fs = require('fs');
const manifest = JSON.parse(fs.readFileSync('./node_modules/vue-good-table/package.json', 'utf-8'));
delete manifest.sideEffects;
fs.writeFileSync('./node_modules/vue-good-table/package.json', JSON.stringify(manifest, null, 2));