build: strict mode, use esm, and target es2020 (#52)

This commit is contained in:
hiroki osame
2023-02-16 00:35:45 -05:00
committed by GitHub
parent de38c891f5
commit 9ebe807e49
4 changed files with 25 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import inquirer from 'inquirer';
import {
getConfig,
generateCommitMessage,
} from './utils';
} from './utils.js';
(async () => {
const config = await getConfig();
@@ -86,7 +86,7 @@ import {
encoding: 'utf8',
});
} catch (error) {
console.error(chalk.white('▲ ') + chalk.red(error.message));
console.error(chalk.white('▲ ') + chalk.red((error as any).message));
process.exit(1);
}
})();