We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8664426 commit 286634dCopy full SHA for 286634d
1 file changed
remove_default_exports/run.py
@@ -2,6 +2,7 @@
2
from codegen import Codebase
3
from codegen.sdk.typescript.file import TSFile
4
5
+
6
@codegen.function("remove-default-exports")
7
def run(codebase: Codebase):
8
"""Convert default exports to named exports in TypeScript files.
@@ -18,7 +19,7 @@ def run(codebase: Codebase):
18
19
continue
20
21
# Get corresponding non-shared file
- non_shared_path = file.filepath.replace('/shared/', '/')
22
+ non_shared_path = file.filepath.replace("/shared/", "/")
23
if not codebase.has_file(non_shared_path):
24
print(f"⚠️ No matching non-shared file for: {non_shared_path}")
25
@@ -38,6 +39,7 @@ def run(codebase: Codebase):
38
39
40
print(f"✨ Fixed exports in {file.filepath}")
41
42
43
if __name__ == "__main__":
44
codebase = Codebase("./")
45
run(codebase)
0 commit comments