@webergency-utils/typechecker 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts.js +3 -1
- package/package.json +1 -1
package/dist/ts.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as tsModule from 'typescript';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
let tsInstance = tsModule;
|
|
3
4
|
if (!tsInstance.createProgram) {
|
|
4
5
|
try {
|
|
5
|
-
const
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
const ts6 = require('@typescript/typescript6');
|
|
6
8
|
tsInstance = ts6.default || ts6;
|
|
7
9
|
}
|
|
8
10
|
catch (e) {
|