aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json5
-rw-r--r--tsconfig.json8
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"
+ ]
}