We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ddee5e commit bbad37aCopy full SHA for bbad37a
jest.config.js
@@ -1,4 +1,7 @@
1
-module.exports = {
+export default {
2
preset: 'ts-jest',
3
testEnvironment: 'node',
4
+ moduleNameMapper: {
5
+ '^(\\.{1,2}/.*)\\.js$': '$1',
6
+ },
7
}
package.json
@@ -15,6 +15,9 @@
15
"src"
16
],
17
"type": "module",
18
+ "main": "dist/main/index.js",
19
+ "module": "dist/module/index.js",
20
+ "types": "dist/module/index.d.ts",
21
"exports": {
22
"require": "./dist/main/index.js",
23
"import": "./dist/module/index.js",
0 commit comments