Skip to content

Instantly share code, notes, and snippets.

@dfinke
Created October 20, 2012 13:40
Show Gist options
  • Save dfinke/3923295 to your computer and use it in GitHub Desktop.
Save dfinke/3923295 to your computer and use it in GitHub Desktop.
Recursively searches for TypeScript files and invokes the compiler on the target
function Invoke-CompileAllTS {
<#
.Synopsis
Recursively searches for TypeScript files and invokes the compiler on the target
.Example
Invoke-CompileAllTS
#>
ls . -Recurse *.ts | ForEach {tsc $_.fullname}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment