Compare commits

...

2 Commits

Author SHA1 Message Date
c2e406964d 1.3.1 2024-10-27 19:22:45 +01:00
c3e3b2d050 fix(core): Add console.log to show ts-node options in use 2024-10-27 19:22:45 +01:00
4 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# Changelog # 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) ## 2024-10-27 - 1.3.0 - feat(ci)
Add Gitea workflows for build and release. Add Gitea workflows for build and release.

View File

@ -1,6 +1,6 @@
{ {
"name": "@git.zone/tsrun", "name": "@git.zone/tsrun",
"version": "1.3.0", "version": "1.3.1",
"description": "run typescript programs efficiently", "description": "run typescript programs efficiently",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

View File

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

View File

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