path = 'tools/build/export_skills_to_ts.py'
with open(path, 'r', encoding='utf-8') as f:
    content = f.read()

content = content.replace('window.SkillTags = {', '(window as any).SkillTags = {')
content = content.replace('window.SkillCatalog = {', '(window as any).SkillCatalog = {')
content = content.replace('window.SupportSkillCatalog = {', '(window as any).SupportSkillCatalog = {')

with open(path, 'w', encoding='utf-8') as f:
    f.write(content)
