Skip to content

Commit 525fdf8

Browse files
committed
TS_POST_PROCESS_FILE is extremely slow.
Run `npm run format` on post process.
1 parent bcb0b30 commit 525fdf8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

generate-code.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44

55

66
def run_command(command):
7-
env = os.environ.copy()
8-
env['TS_POST_PROCESS_FILE'] = 'npx prettier --write'
9-
107
print(command)
11-
proc = subprocess.run(command, shell=True, text=True, capture_output=True, env=env)
8+
proc = subprocess.run(command, shell=True, text=True, capture_output=True)
129

1310
if len(proc.stdout) != 0:
1411
print("\n\nSTDOUT:\n\n")
@@ -87,6 +84,8 @@ def main():
8784
generate_clients()
8885
generate_webhook()
8986

87+
run_command('npm run format')
88+
9089

9190
if __name__ == "__main__":
9291
main()

0 commit comments

Comments
 (0)