File tree 3 files changed +26
-11
lines changed
3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 37
37
"esbuild-jest" : " npm:@alloc/esbuild-jest@^0.3.6" ,
38
38
"jest" : " ^26.6.3" ,
39
39
"klona" : " ^2.0.4" ,
40
- "prettier" : " ^2.0.5 " ,
40
+ "prettier" : " ^2.8.7 " ,
41
41
"rollup" : " ^2.45.2" ,
42
42
"tsup" : " ^6.5.0" ,
43
43
"typescript" : " ^4.9.3" ,
Original file line number Diff line number Diff line change @@ -76,18 +76,33 @@ export default (opts: PluginOptions = {}): Plugin => {
76
76
}
77
77
}
78
78
79
+ const parseOptions = {
80
+ resolveWithEmptyIfConfigNotFound : true ,
81
+ } satisfies import ( 'tsconfck' ) . TSConfckParseOptions
82
+
79
83
const parsedProjects = new Set (
80
- await Promise . all (
81
- projects . map ( ( tsconfigFile ) =>
82
- hasTypeScriptDep
83
- ? tsconfck . parseNative ( tsconfigFile )
84
- : tsconfck . parse ( tsconfigFile )
84
+ (
85
+ await Promise . all (
86
+ projects . map ( ( tsconfigFile ) =>
87
+ hasTypeScriptDep
88
+ ? tsconfck . parseNative ( tsconfigFile , parseOptions )
89
+ : tsconfck . parse ( tsconfigFile , parseOptions )
90
+ )
85
91
)
86
- )
92
+ ) . filter ( ( project , i ) => {
93
+ if ( project . tsconfigFile !== 'no_tsconfig_file_found' ) {
94
+ return true
95
+ }
96
+ debug ( 'tsconfig file not found:' , projects [ i ] )
97
+ return false
98
+ } )
87
99
)
88
100
89
101
resolversByDir = { }
90
102
parsedProjects . forEach ( ( project ) => {
103
+ if ( ! project ) {
104
+ return
105
+ }
91
106
// Don't create a resolver for projects with a references array.
92
107
// Instead, create a resolver for each project in that array.
93
108
if ( project . referenced ) {
You can’t perform that action at this time.
0 commit comments