@sitecore-jss/sitecore-jss-rendering-host 22.9.0-canary.15 → 22.9.0-canary.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.startDevServer = startDevServer;
7
7
  const del_1 = require("del");
8
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9
- // @ts-ignore
10
- const opn_1 = __importDefault(require("opn"));
8
+ const open_1 = __importDefault(require("open"));
11
9
  const path_1 = __importDefault(require("path"));
12
10
  const webpack_1 = __importDefault(require("webpack"));
13
11
  const webpack_dev_server_1 = __importDefault(require("webpack-dev-server"));
@@ -65,7 +63,7 @@ function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifactsPath
65
63
  compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
66
64
  if (!browserOpened) {
67
65
  console.log('opening browser', stats.compilation.compiler.name);
68
- (0, opn_1.default)(urlToOpenOnStart).then(() => {
66
+ (0, open_1.default)(urlToOpenOnStart).then(() => {
69
67
  browserOpened = true;
70
68
  });
71
69
  }
@@ -1,7 +1,5 @@
1
1
  import { deleteSync as delSync } from 'del';
2
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3
- // @ts-ignore
4
- import openBrowser from 'opn';
2
+ import open from 'open';
5
3
  import path from 'path';
6
4
  import webpack from 'webpack';
7
5
  import WebpackDevServer from 'webpack-dev-server';
@@ -59,7 +57,7 @@ export function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifa
59
57
  compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
60
58
  if (!browserOpened) {
61
59
  console.log('opening browser', stats.compilation.compiler.name);
62
- openBrowser(urlToOpenOnStart).then(() => {
60
+ open(urlToOpenOnStart).then(() => {
63
61
  browserOpened = true;
64
62
  });
65
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-rendering-host",
3
- "version": "22.9.0-canary.15",
3
+ "version": "22.9.0-canary.17",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -31,7 +31,7 @@
31
31
  "express": "^5.1.0",
32
32
  "import-fresh": "^3.3.1",
33
33
  "ngrok": "^4.3.3",
34
- "opn": "^6.0.0",
34
+ "open": "^8.4.2",
35
35
  "webpack": "5.101.0"
36
36
  },
37
37
  "devDependencies": {
@@ -67,5 +67,5 @@
67
67
  "types",
68
68
  "/global.d.ts"
69
69
  ],
70
- "gitHead": "aa0d27fd824cf0920fac80acec4e03c003279860"
70
+ "gitHead": "05bafce5638a38f08707fb4666c10ee772c68801"
71
71
  }