@shanzhai/compile-type-script-step

A Shanzhai step which compiles parsed TypeScript to Javascript.

Usage no npm install needed!

<script type="module">
  import shanzhaiCompileTypeScriptStep from 'https://cdn.skypack.dev/@shanzhai/compile-type-script-step';
</script>

README

@shanzhai/compile-type-script-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which compiles parsed TypeScript to Javascript.

Usage

This step is unlikely to have any use other than combining the output of ParseTypeScriptStep.

Within a trigger's event handler, return an instance of CompileTypeScriptStep similar to the following:

new CompileTypeScriptStep(
  new ConstantInput({
    keyA: aParsedTypeScriptFile,
    keyB: anotherParsedTypeScriptFile,
  }),
  new ConstantInput(aSetOfTypeScriptCompilerOptions),
  new OutputForCompiledJavascript(),
);

This will compile all of the input parsed TypeScript files into a single Javascript file and output it.

Dependencies

This package has the following runtime dependencies:

Name Version
typescript 4.4.3

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status