v1.3.0
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
- feat: dont call process.exit in tsr() by @kazushisan in #103
🧹 Chores
- refactor: make edit synchronous by @kazushisan in #104
Full Changelog: v1.2.0...v1.3.0