Skip to content
New issue

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

Export package.json #3608

Closed
msotnikov opened this issue Dec 5, 2022 · 2 comments
Closed

Export package.json #3608

msotnikov opened this issue Dec 5, 2022 · 2 comments

Comments

@msotnikov
Copy link

msotnikov commented Dec 5, 2022

Hi.

The problem described there

nodejs/node#33460

Related issues:

#3556
#3532

Related PR with fix

#3576
Снимок экрана 2022-12-05 в 16 21 34

To make sure it doesn't break anything:

Could you apply this, please?

@msotnikov
Copy link
Author

fix with patch-package patches\d3+7.7.0.patch

diff --git a/node_modules/d3/package.json b/node_modules/d3/package.json
index 104c495..6ce3f02 100644
--- a/node_modules/d3/package.json
+++ b/node_modules/d3/package.json
@@ -30,8 +30,11 @@
   "jsdelivr": "dist/d3.min.js",
   "unpkg": "dist/d3.min.js",
   "exports": {
-    "umd": "./dist/d3.min.js",
-    "default": "./src/index.js"
+    ".": {
+      "umd": "./dist/d3.min.js",
+      "default": "./src/index.js"
+    },
+    "./package.json": "./package.json"
   },
   "dependencies": {
     "d3-array": "3",

@mbostock mbostock closed this as completed Dec 5, 2022
@msotnikov
Copy link
Author

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants