@cypress/webpack-dev-server 3.5.0 → 3.5.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.
@@ -55,17 +55,21 @@ async function generateTsConfig(devServerConfig, buildOptions) {
55
55
  : [buildOptions.polyfills];
56
56
  includePaths.push(...polyfills.map((p) => getProjectFilePath(workspaceRoot, p)));
57
57
  }
58
- const cypressTypes = getProjectFilePath(workspaceRoot, 'node_modules', 'cypress', 'types', 'index.d.ts');
59
- includePaths.push(cypressTypes);
58
+ const typeRoots = [
59
+ getProjectFilePath(workspaceRoot, 'node_modules'),
60
+ ];
61
+ const types = ['cypress'];
60
62
  const tsConfigContent = JSON.stringify({
61
63
  extends: getProjectFilePath(projectRoot, (_a = buildOptions.tsConfig) !== null && _a !== void 0 ? _a : 'tsconfig.json'),
62
64
  compilerOptions: {
63
65
  outDir: getProjectFilePath(projectRoot, 'out-tsc/cy'),
64
66
  allowSyntheticDefaultImports: true,
65
67
  skipLibCheck: true,
68
+ types,
69
+ typeRoots,
66
70
  },
67
71
  include: includePaths,
68
- });
72
+ }, null, 2);
69
73
  const tsConfigPath = path.join(await getTempDir(), 'tsconfig.json');
70
74
  await fs.writeFile(tsConfigPath, tsConfigContent);
71
75
  return tsConfigPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/webpack-dev-server",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Launches Webpack Dev Server for Component Testing",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "html-webpack-plugin-4": "npm:html-webpack-plugin@^4",
24
24
  "html-webpack-plugin-5": "npm:html-webpack-plugin@^5",
25
25
  "local-pkg": "0.4.1",
26
- "semver": "^7.3.2",
26
+ "semver": "^7.5.3",
27
27
  "speed-measure-webpack-plugin": "1.4.2",
28
28
  "tslib": "^2.3.1",
29
29
  "webpack-dev-server": "^4.7.4",