diff --git a/benchmark/install-jsdom.js b/benchmark/install-jsdom.js new file mode 100644 index 0000000000..87f3ff00aa --- /dev/null +++ b/benchmark/install-jsdom.js @@ -0,0 +1,4 @@ +const exec = require('child_process').execSync + +console.log('try to install jsdom') +exec('npm install jsdom@^7.0.2') diff --git a/benchmark/suite.js b/benchmark/suite.js index 8b72d4127a..21ca30c641 100644 --- a/benchmark/suite.js +++ b/benchmark/suite.js @@ -2,6 +2,9 @@ var fs = require('fs'); var path = require('path'); var Benchmark = require('benchmark'); + +require('./install-jsdom') + var jsdom = require('jsdom'); var cheerio = require('..'); diff --git a/package.json b/package.json index 2e9dac7857..918b104fc4 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,5 @@ }, "scripts": { "test": "make test" - }, - "optionalDependencies": { - "jsdom": "^7.0.2" } }