File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function split(payload: z.infer<typeof splitSchema>) {
1313
1414 // Get the dependency tree
1515 const dependencyTreeManager = new DependencyTreeManager (
16- payload . entrypointPath
16+ payload . entrypointPath ,
1717 ) ;
1818
1919 const outputDir = payload . outputDir || path . dirname ( payload . entrypointPath ) ;
@@ -39,7 +39,7 @@ export function split(payload: z.infer<typeof splitSchema>) {
3939 const relativeFileNamePath = path . relative ( targetDir , file . path ) ;
4040 const destinationPath = path . join (
4141 annotationDirectory ,
42- relativeFileNamePath
42+ relativeFileNamePath ,
4343 ) ;
4444 fs . mkdirSync ( path . dirname ( destinationPath ) , { recursive : true } ) ;
4545 fs . writeFileSync ( destinationPath , file . sourceCode , "utf8" ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import SplitRunner from "../splitRunner/splitRunner";
77
88export default function splitCommandHandler (
99 entrypointPath : string , // Path to the entrypoint file
10- outputDir : string // Path to the output directory
10+ outputDir : string , // Path to the output directory
1111) {
1212 const groupMap : Record < number , Group > = { } ;
1313
@@ -33,7 +33,7 @@ export default function splitCommandHandler(
3333 const relativeFileNamePath = path . relative ( targetDir , file . path ) ;
3434 const destinationPath = path . join (
3535 annotationDirectory ,
36- relativeFileNamePath
36+ relativeFileNamePath ,
3737 ) ;
3838 fs . mkdirSync ( path . dirname ( destinationPath ) , { recursive : true } ) ;
3939 fs . writeFileSync ( destinationPath , file . sourceCode , "utf8" ) ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export interface LanguagePlugin {
6161
6262 removeAnnotationFromOtherGroups (
6363 sourceCode : string ,
64- groupToKeep : Group
64+ groupToKeep : Group ,
6565 ) : string ;
6666
6767 getImports ( filePath : string , node : Parser . SyntaxNode ) : DepImport [ ] ;
@@ -71,7 +71,7 @@ export interface LanguagePlugin {
7171 cleanupInvalidImports (
7272 filePath : string ,
7373 sourceCode : string ,
74- exportMap : Map < string , DepExport [ ] >
74+ exportMap : Map < string , DepExport [ ] > ,
7575 ) : string ;
7676
7777 cleanupUnusedImports ( filePath : string , sourceCode : string ) : string ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function removeAnnotationFromOtherGroups() {
2525
2626 const updatedSourceCode = languagePlugin . removeAnnotationFromOtherGroups (
2727 file . sourceCode ,
28- group
28+ group ,
2929 ) ;
3030 return { ...file , sourceCode : updatedSourceCode } ;
3131 } ) ;
@@ -51,7 +51,7 @@ function removeInvalidImportsAndUsages(exportMap: Map<string, DepExport[]>) {
5151 const updatedSourceCode = languagePlugin . cleanupInvalidImports (
5252 file . path ,
5353 file . sourceCode ,
54- exportMap
54+ exportMap ,
5555 ) ;
5656
5757 return { ...file , sourceCode : updatedSourceCode } ;
@@ -64,7 +64,7 @@ function removeUnusedImports() {
6464
6565 const updatedSourceCode = languagePlugin . cleanupUnusedImports (
6666 file . path ,
67- file . sourceCode
67+ file . sourceCode ,
6868 ) ;
6969
7070 return { ...file , sourceCode : updatedSourceCode } ;
@@ -135,7 +135,7 @@ function removeErrors() {
135135
136136 const query = new Parser . Query (
137137 languagePlugin . parser . getLanguage ( ) ,
138- "(ERROR) @error"
138+ "(ERROR) @error" ,
139139 ) ;
140140 const errorCaptures = query . captures ( tree . rootNode ) ;
141141 errorCaptures . forEach ( ( capture ) => {
@@ -147,7 +147,7 @@ function removeErrors() {
147147
148148 const updatedSourceCode = removeIndexesFromSourceCode (
149149 file . sourceCode ,
150- indexesToRemove
150+ indexesToRemove ,
151151 ) ;
152152
153153 return { ...file , sourceCode : updatedSourceCode } ;
You can’t perform that action at this time.
0 commit comments