@cypress/webpack-dev-server 4.1.0 → 4.1.1

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.
@@ -67,7 +67,8 @@ class CypressCTWebpackPlugin {
67
67
  // TODO: don't use a sync fs method here
68
68
  // eslint-disable-next-line no-restricted-syntax
69
69
  const utimesSync = (_a = inputFileSystem.fileSystem.utimesSync) !== null && _a !== void 0 ? _a : fs_extra_1.default.utimesSync;
70
- utimesSync(path_1.default.join(this.projectRoot, this.indexHtmlFile), new Date(), new Date());
70
+ const indexHtmlFilePath = path_1.default.isAbsolute(this.indexHtmlFile) ? this.indexHtmlFile : path_1.default.join(this.projectRoot, this.indexHtmlFile);
71
+ utimesSync(indexHtmlFilePath, new Date(), new Date());
71
72
  };
72
73
  /**
73
74
  * The webpack compiler generates a new `compilation` each time it compiles, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/webpack-dev-server",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Launches Webpack Dev Server for Component Testing",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -35,6 +35,7 @@
35
35
  "@types/speed-measure-webpack-plugin": "^1.3.4",
36
36
  "@types/webpack-bundle-analyzer": "4.7.0",
37
37
  "chai": "^4.3.6",
38
+ "cross-env": "7.0.3",
38
39
  "dedent": "^0.7.0",
39
40
  "mocha": "^9.2.2",
40
41
  "proxyquire": "2.1.3",