@cypress/webpack-dev-server 3.5.0 → 3.5.2
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
|
|
59
|
-
|
|
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;
|
|
@@ -42,7 +42,7 @@ function makeCypressWebpackConfig(config) {
|
|
|
42
42
|
publicPath,
|
|
43
43
|
},
|
|
44
44
|
plugins: [
|
|
45
|
-
new HtmlWebpackPlugin(Object.assign({ template: indexHtmlFile }, (framework === 'angular' ? { scriptLoading: 'module', base: '/__cypress/src/' } : {}))),
|
|
45
|
+
new HtmlWebpackPlugin(Object.assign({ template: indexHtmlFile ? path_1.default.join(projectRoot, indexHtmlFile) : undefined }, (framework === 'angular' ? { scriptLoading: 'module', base: '/__cypress/src/' } : {}))),
|
|
46
46
|
new CypressCTWebpackPlugin_1.CypressCTWebpackPlugin({
|
|
47
47
|
files,
|
|
48
48
|
projectRoot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress/webpack-dev-server",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Launches Webpack Dev Server for Component Testing",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,13 +23,14 @@
|
|
|
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
|
|
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",
|
|
30
30
|
"webpack-merge": "^5.4.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@types/node": "16.18.39",
|
|
33
34
|
"@types/proxyquire": "^1.3.28",
|
|
34
35
|
"@types/speed-measure-webpack-plugin": "^1.3.4",
|
|
35
36
|
"@types/webpack-dev-server-3": "npm:@types/webpack-dev-server@^3",
|