mitt
mitt copied to clipboard
chore: fix typescript issue with `NodeNext`, fix #166
We might also need to lower the "typings" property as described in typescriptlang.org
diff --git a/node_modules/mitt/package.json b/node_modules/mitt/package.json
index ad38c7b..7649cc8 100644
--- a/node_modules/mitt/package.json
+++ b/node_modules/mitt/package.json
@@ -7,12 +7,13 @@
"jsnext:main": "dist/mitt.mjs",
"umd:main": "dist/mitt.umd.js",
"source": "src/index.ts",
- "typings": "index.d.ts",
"exports": {
+ "types": "./index.d.ts",
"import": "./dist/mitt.mjs",
"require": "./dist/mitt.js",
"default": "./dist/mitt.mjs"
},
+ "typings": "index.d.ts",
"scripts": {
"test": "npm-run-all --silent typecheck lint mocha test-types",
"mocha": "mocha test",
I did not remove typings field? Why are you mentioning that?
Edited: You might want to express that we need a typings property in exports, but that's UNNEEDED, as long as typescript cares about exports field, it already recognize types
Hi, any update with this?
Any update with this? @developit
Thanks! Sorry about the delay.
Any release schedule for this?
Hi bro, we still need this fix to be published as 3.0.1
hey @developit , is there a way to get this released?
Hi @developit, we need v3.0.1