File tree 3 files changed +31
-17
lines changed
3 files changed +31
-17
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " typescript-transform-paths" ,
3
3
"version" : " 3.4.11" ,
4
4
"description" : " Transforms module resolution paths using TypeScript path mapping and/or custom paths" ,
5
- "main" : " dist/index.js" ,
6
- "types" : " dist/index.d.ts" ,
5
+ "type" : " commonjs" ,
6
+ "main" : " ./dist/index.js" ,
7
+ "types" : " types/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "types" : " ./dist/index.d.ts" ,
11
+ "default" : " ./dist/index.js"
12
+ },
13
+ "./register" : " ./register.js" ,
14
+ "./nx-transformer" : " ./nx-transformer.js"
15
+ },
16
+ "files" : [
17
+ " dist" ,
18
+ " types" ,
19
+ " README.md" ,
20
+ " CHANGELOG.md" ,
21
+ " register.js" ,
22
+ " nx-transformer.js"
23
+ ],
7
24
"scripts" : {
8
25
"compile" : " tsc" ,
9
26
"build" : " yarn clean && yarn compile" ,
42
59
" Daniel Perez" ,
43
60
" Ron S. (https://twitter.com/Ron)"
44
61
],
45
- "files" : [
46
- " dist" ,
47
- " types" ,
48
- " README.md" ,
49
- " CHANGELOG.md" ,
50
- " register.js" ,
51
- " nx-transformer.js"
52
- ],
53
62
"devDependencies" : {
54
63
"@eslint/js" : " ^9.8.0" ,
55
64
"@tsconfig/node18" : " ^18.2.4" ,
Original file line number Diff line number Diff line change
1
+ import { execSync } from "node:child_process" ;
2
+ import { readFileSync , rmSync } from "node:fs" ;
3
+ import path from "node:path" ;
4
+
1
5
import ts from "typescript" ;
6
+
2
7
import { nxTransformerPlugin } from "typescript-transform-paths" ;
3
- import path from "path" ;
8
+ import * as transformerModule from "../../dist/transformer" ;
9
+
4
10
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" ;
8
11
9
12
/* ****************************************************************************************************************** *
10
13
* Tests
Original file line number Diff line number Diff line change 1
- import { register } from "typescript-transform-paths" ;
2
- import { PluginConfig } from "ts-patch" ;
3
1
import * as tsNode from "ts-node" ;
4
- import * as transformerModule from "typescript-transform-paths/dist/transformer" ;
5
2
import { REGISTER_INSTANCE } from "ts-node" ;
3
+ import { PluginConfig } from "ts-patch" ;
6
4
import { CustomTransformers , PluginImport , Program } from "typescript" ;
5
+
6
+ import { register } from "typescript-transform-paths" ;
7
+ import * as transformerModule from "../../dist/transformer" ;
8
+
7
9
import { ModuleNotFoundError } from "../utils" ;
8
10
9
11
/* ****************************************************************************************************************** *
You can’t perform that action at this time.
0 commit comments