File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ function filterRelevantTsFiles(
310310 ] ;
311311
312312 for ( const common of commonFiles ) {
313- for ( const src of tsFiles ) {
313+ for ( const src of srcFiles ) {
314314 if ( src . content . includes ( `common/${ common . path } ` ) ) {
315315 tsFiles . push ( common ) ;
316316 break ;
Original file line number Diff line number Diff line change @@ -148,16 +148,11 @@ export const common = R.pipe(
148148 eager : true ,
149149 import : 'default' ,
150150 } ) as Record < string , string > ,
151- R . mapValues ( ( content : string , key : string ) : ExampleCommonFile => {
152- const pathRelToCommon = pathe . relative ( './' , key ) ;
153- const filePath = pathRelToCommon . split ( '/' ) [ 1 ] ;
154-
155- return {
156- common : true ,
157- path : filePath ,
158- content,
159- } ;
160- } ) ,
151+ R . mapValues ( ( content : string , key : string ) : ExampleCommonFile => ( {
152+ common : true ,
153+ path : pathe . basename ( key ) ,
154+ content,
155+ } ) ) ,
161156 R . values ( ) ,
162157) ;
163158
You can’t perform that action at this time.
0 commit comments