File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ if (amDependency) {
57
57
58
58
const addTSConfigFile = ( ) => {
59
59
const tsConfigFilename = path . join ( root , 'tsconfig.json' )
60
+
60
61
if ( ! fs . existsSync ( tsConfigFilename ) ) {
61
62
console . log ( 'cannot find tsconfig.json, creating default' )
62
63
const tsConfig = {
@@ -66,6 +67,14 @@ if (amDependency) {
66
67
fs . writeFileSync ( tsConfigFilename , text )
67
68
} else {
68
69
console . log ( 'file %s already exists' , tsConfigFilename )
70
+ console . log ( 'create only an extension tsconfig in the cypress folder' )
71
+ const toFile = path . join ( cypressFolder , 'tsconfig.json' )
72
+ const tsConfig = {
73
+ extends : '../tsconfig.json' ,
74
+ include : [ '../node_modules/cypress' , '*/*.ts' ]
75
+ }
76
+ const text = JSON . stringify ( tsConfig , null , 2 ) + '\n'
77
+ fs . writeFileSync ( toFile , text )
69
78
}
70
79
}
71
80
You can’t perform that action at this time.
0 commit comments