Skip to content

Commit d4f6f35

Browse files
authored
chore: correct typescript configuration for cypress mount (#11063)
Both TypeScript configurations were configured to process all files in `src` file. With that modules were not in the correct in the correct format that `cypress` expects. - `definition.js` should be resolved in CommonJS - `index.js` should be resolved in ESM
1 parent f3894d0 commit d4f6f35

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compilerOptions": {
3-
"outDir": "dist",
4-
"rootDir": "src",
3+
"outDir": "dist",
54
"target": "ES2015",
65
"module": "CommonJS",
76
"moduleResolution": "node",
@@ -12,4 +11,5 @@
1211
"types": ["cypress"],
1312
"skipLibCheck": true
1413
},
15-
}
14+
"include": ["./src/definition.ts"]
15+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"compilerOptions": {
3-
"outDir": "dist",
4-
"rootDir": "src",
3+
"outDir": "dist",
54
"target": "ES6",
65
"module": "ES6",
76
"moduleResolution": "node",
@@ -11,4 +10,5 @@
1110
"strict": true,
1211
"types": ["cypress"]
1312
},
14-
}
13+
"include": ["./src/index.ts"]
14+
}

0 commit comments

Comments
 (0)