docs: fix path to modules in plugin (#11387)
This commit is contained in:
1 parent
1e7c072efa
commit
eb74167261
1 file changed
+2
-2
@@ -270,7 +270,7 @@ Your plugin project should have the following exports in `package.json`:
|
|||||||
"exports": {
|
"exports": {
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
"./workflows": "./.medusa/server/src/workflows/index.js",
|
"./workflows": "./.medusa/server/src/workflows/index.js",
|
||||||
"./modules/*": "./.medusa/server/src/modules/*/index.js",
|
"./.medusa/server/src/modules/*": "./.medusa/server/src/modules/*/index.js",
|
||||||
"./providers/*": "./.medusa/server/src/providers/*/index.js",
|
"./providers/*": "./.medusa/server/src/providers/*/index.js",
|
||||||
"./*": "./.medusa/server/src/*.js"
|
"./*": "./.medusa/server/src/*.js"
|
||||||
}
|
}
|
||||||
@@ -287,7 +287,7 @@ The plugin exports the following files and directories:
|
|||||||
|
|
||||||
- `./package.json`: The package.json file. Medusa needs to access the `package.json` when registering the plugin.
|
- `./package.json`: The package.json file. Medusa needs to access the `package.json` when registering the plugin.
|
||||||
- `./workflows`: The workflows exported in `./src/workflows/index.ts`.
|
- `./workflows`: The workflows exported in `./src/workflows/index.ts`.
|
||||||
- `./modules/*`: The definition file of modules. This is useful if you create links to the plugin's modules in the Medusa application.
|
- `./.medusa/server/src/modules/*`: The definition file of modules. This is useful if you create links to the plugin's modules in the Medusa application.
|
||||||
- `./providers/*`: The definition file of module providers. This allows you to register the plugin's providers in the Medusa application.
|
- `./providers/*`: The definition file of module providers. This allows you to register the plugin's providers in the Medusa application.
|
||||||
- `./*`: Any other files in the plugin's `src` directory.
|
- `./*`: Any other files in the plugin's `src` directory.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user