-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet
Description
Describe the Bug
https://github.com/payloadcms/payload/blob/main/templates/plugin/package.json
Default exports pointing to non-existing index file in exports folder.
"exports": {
".": {
"import": "./src/exports/index.ts",
"types": "./src/exports/index.ts",
"default": "./src/exports/index.ts"
},
And on publish too
"publishConfig": {
"exports": {
".": {
"import": "./dist/exports/index.js",
"types": "./dist/exports/index.d.ts",
"default": "./dist/exports/index.js"
},
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/blob/main/templates/plugin/package.json
Reproduction Steps
Try to publish sample plugin and import it in code.
Which area(s) are affected? (Select all that apply)
area: templates
Environment Info
Latest template
Metadata
Metadata
Assignees
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet