docs: change module paths in resolve (#7539)
Change the path to modules in the resolve property across docs
This commit is contained in:
1 parent
872c42c6dc
commit
70e1de7742
4 files changed
+4
-11
No files matched your search
@@ -121,10 +121,9 @@ The queries performed in each of the methods use PostgreSQL syntax.
|
|||||||
|
|
||||||
### Run Migration
|
### Run Migration
|
||||||
|
|
||||||
To reflect the changes in the migration, transpile your source files using the `build` command, then run the `migration` command:
|
To reflect the changes in the migration, run the `migration` command:
|
||||||
|
|
||||||
```bash npm2yarn
|
```bash npm2yarn
|
||||||
npm run build
|
|
||||||
npx medusa migrations run
|
npx medusa migrations run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -75,13 +75,7 @@ module.exports = defineConfig({
|
|||||||
|
|
||||||
Its key (`helloModuleService`) is the name of the module’s main service. It will be registered in the Medusa container with that name.
|
Its key (`helloModuleService`) is the name of the module’s main service. It will be registered in the Medusa container with that name.
|
||||||
|
|
||||||
Its value is an object having the `resolve` property, whose value is either a path to the directory holding the module or an `npm` package’s name.
|
Its value is an object having the `resolve` property, whose value is either a path to module's directory (relative to `src`, so it shouldn't include `src` in the path) or an `npm` package’s name.
|
||||||
|
|
||||||
<Note title="Tip">
|
|
||||||
|
|
||||||
When you run the `build` or `dev` command, your customizations are transpiled from the `src` directory into the `dist` directory. So, you point to the module in the `dist` directory.
|
|
||||||
|
|
||||||
</Note>
|
|
||||||
|
|
||||||
### 4. Test the Module
|
### 4. Test the Module
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ module.exports = defineConfig({
|
|||||||
options: {
|
options: {
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
resolve: "./dist/modules/my-fulfillment",
|
resolve: "./modules/my-fulfillment",
|
||||||
options: {
|
options: {
|
||||||
config: {
|
config: {
|
||||||
"my-fulfillment": {
|
"my-fulfillment": {
|
||||||
|
|||||||
+1
-1
@@ -78,7 +78,7 @@ module.exports = defineConfig({
|
|||||||
options: {
|
options: {
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
resolve: "./dist/modules/my-notification",
|
resolve: "./modules/my-notification",
|
||||||
options: {
|
options: {
|
||||||
config: {
|
config: {
|
||||||
"my-notification": {
|
"my-notification": {
|
||||||
|
|||||||
Reference in new issue
Block a user