Skip to content

Commit

Permalink
Support TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfarzan committed Dec 5, 2019
1 parent be12574 commit d70fc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func addLicense(path string, fmode os.FileMode, tmpl *template.Template, data *c
return nil
case ".c", ".h":
lic, err = prefix(tmpl, data, "/*", " * ", " */")
case ".js", ".jsx", ".tsx", ".css", ".tf":
case ".js", ".jsx", ".tsx", ".css", ".tf", ".ts":
lic, err = prefix(tmpl, data, "/**", " * ", " */")
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".java", ".m", ".mm", ".proto", ".rs", ".scala", ".swift", ".dart", ".groovy", ".kt", ".kts":
lic, err = prefix(tmpl, data, "", "// ", "")
Expand Down

0 comments on commit d70fc55

Please sign in to comment.