Skip to content

Commit b53603e

Browse files
committed
using include in tsconfig
1 parent 0a2c1c0 commit b53603e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/jest-transform/src/ScriptTransformer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export default class ScriptTransformer {
273273
return transformer;
274274
}
275275

276-
transform = require(transformPath);
276+
transform = await import(transformPath);
277277

278278
if (!transform) {
279279
throw new TypeError('Jest: a transform must export something.');

packages/jest-transform/tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"rootDir": "src",
54
"outDir": "build"
65
},
76
"references": [
87
{"path": "../jest-haste-map"},
98
{"path": "../jest-regex-util"},
109
{"path": "../jest-types"},
1110
{"path": "../jest-util"}
12-
]
11+
],
12+
"include": ["src/**/*", "package.json"],
1313
}

0 commit comments

Comments
 (0)