Skip to content

Commit

Permalink
Merge pull request #23 from frankfarzan/master
Browse files Browse the repository at this point in the history
Support TypeScript files
  • Loading branch information
x1ddos committed Dec 5, 2019
2 parents be12574 + d70fc55 commit c6b7f1e
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 c6b7f1e

Please sign in to comment.