diff options
| author | Jason Miller <[email protected]> | 2023-07-04 13:27:50 -0400 |
|---|---|---|
| committer | Jason Miller <[email protected]> | 2023-07-04 13:27:50 -0400 |
| commit | 3f81679127be71dd7ad1b2bbbd5a56df81c96290 (patch) | |
| tree | b831d58bea18484e59560ca4af680abbb323991c | |
| parent | bbba04a149f29755be637188a1f480a3ec228807 (diff) | |
fix TypeScript config
| -rw-r--r-- | package.json | 5 | ||||
| -rw-r--r-- | tsconfig.json | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/package.json b/package.json index 78c89e0..f6479b0 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "typings": "index.d.ts", "exports": { "types": "./index.d.ts", + "module": "./dist/mitt.mjs", "import": "./dist/mitt.mjs", "require": "./dist/mitt.js", "default": "./dist/mitt.mjs" @@ -57,7 +58,7 @@ "prettier": { "singleQuote": true, "trailingComma": "none" - }, + }, "devDependencies": { "@types/chai": "^4.2.11", "@types/mocha": "^7.0.2", @@ -79,6 +80,6 @@ "sinon": "^9.0.2", "sinon-chai": "^3.5.0", "ts-node": "^10.9.1", - "typescript": "^5.1.5" + "typescript": "^4.9.5" } } diff --git a/tsconfig.json b/tsconfig.json index 563d58e..6d1b988 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,11 @@ "noEmit": true, "declaration": true, "moduleResolution": "node", - "esModuleInterop": true + "skipLibCheck": true, + "esModuleInterop": true, }, - "include": ["src/*.ts", "test/*.ts"] + "include": [ + "src/*.ts", + "test/*.ts" + ] } |
