From d70fc5530d5ada7ae6438e9fe5bc1f29f7498c93 Mon Sep 17 00:00:00 2001 From: Frank Farzan Date: Thu, 5 Dec 2019 13:43:45 -0800 Subject: [PATCH] Support TypeScript files --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0f30603..f1deca0 100644 --- a/main.go +++ b/main.go @@ -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, "", "// ", "")