Skip to content

Commit 9490bd8

Browse files
committed
WIP change path
1 parent 4ce76df commit 9490bd8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export const tsModules = <const>[
2424
];
2525

2626
export const projectsPaths = path.join(__dirname, "./projects");
27-
export const transformerPath = path.resolve(__dirname, "../src/index.ts");
28-
export const builtTransformerPath = path.resolve(__dirname, "../dist/index.js");
27+
export const transformerPath = require.resolve("typescript-transform-paths");
28+
export const builtTransformerPath = require.resolve("typescript-transform-paths");
2929

3030
Error.stackTraceLimit = 120;
3131

test/tests/nx.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import ts from "typescript";
2-
import { nxTransformerPlugin } from "../../src";
2+
import { nxTransformerPlugin } from "typescript-transform-paths";
33
import path from "path";
44
import { projectsPaths } from "../config";
55
import { execSync } from "child_process";
66
import { readFileSync, rmSync } from "fs";
7-
import * as transformerModule from "../../src/transformer";
7+
import * as transformerModule from "typescript-transform-paths/dist/transformer";
88

99
/* ****************************************************************************************************************** *
1010
* Tests

test/tests/transformer/specific.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
getTsNodeEmitResult,
1010
} from "../../utils";
1111
import { projectsPaths, ts, tsModules } from "../../config";
12-
import { TsTransformPathsConfig } from "../../../src";
12+
import { TsTransformPathsConfig } from "typescript-transform-paths";
1313
import TS from "typescript";
1414

1515
/* ****************************************************************************************************************** *

test/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { default as tstpTransform, TsTransformPathsConfig } from "../../src";
1+
import { default as tstpTransform, TsTransformPathsConfig } from "typescript-transform-paths";
22
import fs from "fs";
33
import ts from "typescript";
44
import * as tsNode from "ts-node";

0 commit comments

Comments
 (0)