@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.
Files changed (2) hide show
  1. package/dist/ts.js +3 -1
  2. 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 ts6 = await import('@typescript/typescript6');
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webergency-utils/typechecker",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "TypeScript compiler plugin for runtime validation",
6
6
  "author": "radixxko",