From c3e3b2d050f20a8962762c24f45ce6ae700ae514 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 27 Oct 2024 19:22:45 +0100 Subject: [PATCH] fix(core): Add console.log to show ts-node options in use --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/loader.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 79c28e4..073e6cc 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index ab15ac4..0f219f7 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsrun', - version: '1.3.0', + version: '1.3.1', description: 'run typescript programs efficiently' } diff --git a/ts/loader.ts b/ts/loader.ts index 8718114..36eb1d2 100644 --- a/ts/loader.ts +++ b/ts/loader.ts @@ -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;