fix(core): Add console.log to show ts-node options in use

This commit is contained in:
Philipp Kunz 2024-10-27 19:22:45 +01:00
parent 3a68f74c4e
commit c3e3b2d050
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 2024-10-27 - 1.3.1 - fix(core)
Add console.log to show ts-node options in use
- Added a console log statement in the ts/loader.ts to display the default ts-node options being used.
## 2024-10-27 - 1.3.0 - feat(ci)
Add Gitea workflows for build and release.

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsrun',
version: '1.3.0',
version: '1.3.1',
description: 'run typescript programs efficiently'
}

View File

@ -21,6 +21,7 @@ const defaultTsNodeOptions: plugins.tsNode.CreateOptions = {
transpileOnly: true,
};
console.log(`tsrun is using the following options: ${JSON.stringify(defaultTsNodeOptions, null, 2)}`);
export const { resolve, load, getFormat, transformSource } = plugins.tsNode.createEsmHooks(
plugins.tsNode.register(defaultTsNodeOptions),
) as any;