Skip to content

Commit 0320574

Browse files
nonaraRon S
authored andcommitted
fix: Missing type-only modifier for ts-node type import (fixes #130)
1 parent 42f4d5f commit 0320574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/ts-helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ts, { GetCanonicalFileName, SourceFile } from "typescript";
22
import path from "path";
33
import { VisitorContext } from "../types";
4-
import { REGISTER_INSTANCE } from "ts-node";
4+
import type { REGISTER_INSTANCE } from "ts-node";
55

66
/* ****************************************************************************************************************** */
77
// region: TS Helpers
@@ -84,7 +84,7 @@ export function getTsNodeRegistrationProperties(tsInstance: typeof ts) {
8484

8585
if (!global.process[tsNodeSymbol]) return undefined;
8686

87-
const { config, options } = global.process[REGISTER_INSTANCE]!;
87+
const { config, options } = global.process[tsNodeSymbol]!;
8888

8989
const { configFilePath } = config.options;
9090
const pcl = configFilePath

0 commit comments

Comments
 (0)