Skip to content

Commit 64c3b8f

Browse files
kopekCgithub-actions[bot]
authored andcommitted
Automated pre-commit update
1 parent e30a9a3 commit 64c3b8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

remove_default_exports/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from codegen import Codebase
33
from codegen.sdk.typescript.file import TSFile
44

5+
56
@codegen.function("remove-default-exports")
67
def 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+
4143
if __name__ == "__main__":
4244
codebase = Codebase("./")
4345
run(codebase)

0 commit comments

Comments
 (0)