-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
Make "types" point to "dist/types/index.d.ts" in package.json #2306
Comments
We do set it to the correct file in the Lines 33 to 40 in 7f0daf3
So AFAICT it's more like a bug in that other library?! |
We once tried to set it to What I learned in the meantime is, that cjs and mjs can be supported with |
I tried to test faker against I think @andrewbranch could help you figure out what the proper setup for your types should be and why setting it to In the meantime, I will try to send a PR to https://github.com/lukasbach/monaco-editor-auto-typings to be able to parse |
It looks like there is currently no todo on our side here. |
Pre-Checks
Describe the bug
Hello 👋,
Currently, the key "types" in your package.json is pointing to "index.d.ts" which doesn't exist.
The right location seems to be "dist/types/index.d.ts".
I noticed that by using https://github.com/lukasbach/monaco-editor-auto-typings and trying to load the types for Faker.
If there is no reason for it to point to "index.d.ts" I'll be happy to open a PR to fix it. 😄
Minimal reproduction code
No response
Additional Context
No response
Environment Info
System: OS: macOS 13.4.1 CPU: (10) arm64 Apple M1 Pro Memory: 72.27 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.5.0 - ~/Library/pnpm/node npm: 9.5.1 - /opt/homebrew/bin/npm pnpm: 8.6.12 - /opt/homebrew/bin/pnpm Browsers: Chrome: 115.0.5790.170 Safari: 16.5.2
Which module system do you use?
Used Package Manager
pnpm
The text was updated successfully, but these errors were encountered: