Skip to content

v1.3.0

Compare
Choose a tag to compare
@kazushisan kazushisan released this 16 Dec 10:58
· 17 commits to main since this release
ce5cea2

JavaScript API tsr() will not call process.exit()

Previously, when using the JavaScript API tsr(), it would internaly call process.exit(1) when there is an argument error or when the codebase is not clean when using it in check mode.

From v1.3, tsr() will not call process.exit so that you can run tasks after calling tsr(). use tsr().catch() to set the status code.

import { tsr } from 'tsr';

await tsr({
  entrypoints: [/main\.ts/],
  mode: 'check',
}).catch(() => {
  process.exitCode = 1;
});

What's Changed

🚀 Features

🧹 Chores

Full Changelog: v1.2.0...v1.3.0