Skip to content

Commit 112075f

Browse files
committed
fix(webpack): use npm package "open" to replace deprecated "opn"
closes #1120
1 parent d896772 commit 112075f

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

lib/build/webpack-reporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = function reportReadiness(options) {
33
const yargs = require('yargs');
44
const argv = yargs.argv;
55
argv.color = require('supports-color');
6-
const open = require('opn');
6+
const open = require('open');
77
const useColor = argv.color;
88

99
let startSentence = `Project is running at ${colorInfo(useColor, uri)}`;

lib/dependencies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"karma-webpack": "^4.0.0-rc.3",
7979
"minimatch": "^3.0.4",
8080
"node-sass": "^4.11.0",
81-
"opn": "^5.4.0",
81+
"open": "^6.3.0",
8282
"postcss-loader": "^3.0.0",
8383
"postcss-url": "^8.0.0",
8484
"promise-polyfill": "^8.1.0",

package-lock.json

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"mkdirp": "^0.5.1",
5959
"node-libs-browser": "^2.2.0",
6060
"npm-which": "^3.0.1",
61-
"opn": "^6.0.0",
6261
"preprocess": "^3.1.0",
6362
"pumpify": "^1.5.1",
6463
"querystring-es3": "1.0.0-0",

skeleton/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"json-loader": "",
6868
"html-loader": "",
6969
"istanbul-instrumenter-loader": "",
70-
"opn": "",
70+
"open": "",
7171
"webpack-bundle-analyzer": "",
7272
}
7373
}

0 commit comments

Comments
 (0)