We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch obscenity@0.1.4 for the project I'm working on.
obscenity@0.1.4
Using NodeNext as the typescript moduleResolution causes the types to be unresolved.
NodeNext
moduleResolution
Here is the diff that solved my problem:
diff --git a/node_modules/obscenity/package.json b/node_modules/obscenity/package.json index 899188c..580449a 100644 --- a/node_modules/obscenity/package.json +++ b/node_modules/obscenity/package.json @@ -6,8 +6,14 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.ts", + "default":"./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "repository": { "type": "git",
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
fix(pkg): ensure types resolve in ESM
8b45b71
Fixes #44. Thanks to cevr for the patch.
718da8a
Thanks for the report; I applied your patch verbatim and it should be available in the newest version of Obscenity. Apologies for the long turnaround.
Sorry, something went wrong.
No branches or pull requests
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
obscenity@0.1.4
for the project I'm working on.Using
NodeNext
as the typescriptmoduleResolution
causes the types to be unresolved.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: