File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 22from codegen import Codebase
33from codegen .sdk .typescript .file import TSFile
44
5+
56@codegen .function ("remove-default-exports" )
67def run (codebase : Codebase ):
78 """Convert default exports to named exports in TypeScript files.
@@ -18,7 +19,7 @@ def run(codebase: Codebase):
1819 continue
1920
2021 # Get corresponding non-shared file
21- non_shared_path = file .filepath .replace (' /shared/' , '/' )
22+ non_shared_path = file .filepath .replace (" /shared/" , "/" )
2223 if not codebase .has_file (non_shared_path ):
2324 print (f"⚠️ No matching non-shared file for: { non_shared_path } " )
2425 continue
@@ -38,6 +39,7 @@ def run(codebase: Codebase):
3839
3940 print (f"✨ Fixed exports in { file .filepath } " )
4041
42+
4143if __name__ == "__main__" :
4244 codebase = Codebase ("./" )
4345 run (codebase )
You can’t perform that action at this time.
0 commit comments