Skip to content

Commit 4c89cbc

Browse files
committed
imports workaround
1 parent 6df2f35 commit 4c89cbc

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

test/tests/nx.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import { execSync } from "node:child_process";
2+
import { readFileSync, rmSync } from "node:fs";
3+
import path from "node:path";
4+
15
import ts from "typescript";
6+
27
import { nxTransformerPlugin } from "typescript-transform-paths";
3-
import path from "path";
8+
import * as transformerModule from "../../dist/transformer";
9+
410
import { projectsPaths } from "../config";
5-
import { execSync } from "child_process";
6-
import { readFileSync, rmSync } from "fs";
7-
import * as transformerModule from "typescript-transform-paths/dist/transformer";
811

912
/* ****************************************************************************************************************** *
1013
* Tests

test/tests/register.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { register } from "typescript-transform-paths";
2-
import { PluginConfig } from "ts-patch";
31
import * as tsNode from "ts-node";
4-
import * as transformerModule from "typescript-transform-paths/dist/transformer";
52
import { REGISTER_INSTANCE } from "ts-node";
3+
import { PluginConfig } from "ts-patch";
64
import { CustomTransformers, PluginImport, Program } from "typescript";
5+
6+
import { register } from "typescript-transform-paths";
7+
import * as transformerModule from "../../dist/transformer";
8+
79
import { ModuleNotFoundError } from "../utils";
810

911
/* ****************************************************************************************************************** *

0 commit comments

Comments
 (0)