Building your code
ts-engine can build one or more files at once. As part of the build all TypeScript files within the package are typechecked. All files must be within the
tse build src/index.ts # build multiple files tse build src/index.ts src/test-utils/test-harness.ts
By default the output files are in CommonJS format, however ES Module format is also supported. You can configure this with the
Emit type declarations files.
Opt out of typechecking, this will also stop type declarations being produced.
Watch for changes and rebuild.
Output module type,
esm. Defaults to
Output file extension. Defaults to
Build output is written to
--emit-types option then type definitions will also be produced.
src/index.ts -> dist/index.js -> dist/index.js.map -> dist/index.d.ts src/test-utils/test-harness.ts -> dist/test-utils/test-harness.js -> dist/test-utils/test-harness.js.map -> dist/test-utils/test-harness.d.ts
Babel configuration is supported, see Configuration.