ci: no longer need to patch chromedriver in appveyor

This commit is contained in:
Haoqun Jiang
2019-08-02 19:46:50 +08:00
parent 930b4596b1
commit 96eac78f6e
3 changed files with 1 additions and 13 deletions
-1
View File
@@ -3,7 +3,6 @@ environment:
install:
- ps: Install-Product node $env:nodejs_version
- yarn patch-chromedriver
- yarn --network-timeout 600000
test_script:
+1 -2
View File
@@ -16,8 +16,7 @@
"release": "yarn --pure-lockfile && yarn clean && node scripts/release.js",
"version": "node scripts/genChangelog.js && node scripts/genDocs.js && git add CHANGELOG.md && git add docs",
"docs": "vuepress dev docs",
"docs:build": "vuepress build docs",
"patch-chromedriver": "node scripts/patchChromedriver.js"
"docs:build": "vuepress build docs"
},
"gitHooks": {
"pre-commit": "lint-staged",
-10
View File
@@ -1,10 +0,0 @@
// Appveyor current only ships Chrome 72
// which is no longer supported by the latest version of Chromedriver.
const fs = require('fs')
const path = require('path')
const pkg = require('../package.json')
pkg.resolutions.chromedriver = '2.45.0'
fs.writeFileSync(path.resolve(__dirname, '../package.json'), JSON.stringify(pkg, null, 2))