Replies: 2 comments 7 replies
-
What is this mean? |
Beta Was this translation helpful? Give feedback.
6 replies
-
You can probably set up your exports in package.json to something generic like the following to achieve what you need: "exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js",
}
"./*": {
"types": ["./dist/*/index.d.ts", "./dist/*.d.ts"],
"require": ["./dist/*/index.cjs", "./dist/*.cjs"],
"types": ["./dist/*/index.d.js", "./dist/*.js"],
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would like to use rslib to build my react component package which I publish through npm.
How can I use rslib for this purpose? From what I can see the dist is not generating package.json.
Beta Was this translation helpful? Give feedback.
All reactions