Skip to content

Commit 3f81679

Browse files
committed
fix TypeScript config
1 parent bbba04a commit 3f81679

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"typings": "index.d.ts",
1111
"exports": {
1212
"types": "./index.d.ts",
13+
"module": "./dist/mitt.mjs",
1314
"import": "./dist/mitt.mjs",
1415
"require": "./dist/mitt.js",
1516
"default": "./dist/mitt.mjs"
@@ -57,7 +58,7 @@
5758
"prettier": {
5859
"singleQuote": true,
5960
"trailingComma": "none"
60-
},
61+
},
6162
"devDependencies": {
6263
"@types/chai": "^4.2.11",
6364
"@types/mocha": "^7.0.2",
@@ -79,6 +80,6 @@
7980
"sinon": "^9.0.2",
8081
"sinon-chai": "^3.5.0",
8182
"ts-node": "^10.9.1",
82-
"typescript": "^5.1.5"
83+
"typescript": "^4.9.5"
8384
}
8485
}

tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"noEmit": true,
66
"declaration": true,
77
"moduleResolution": "node",
8-
"esModuleInterop": true
8+
"skipLibCheck": true,
9+
"esModuleInterop": true,
910
},
10-
"include": ["src/*.ts", "test/*.ts"]
11+
"include": [
12+
"src/*.ts",
13+
"test/*.ts"
14+
]
1115
}

0 commit comments

Comments
 (0)