docs: update resolve path to use src (#9605)

Update path used in `resolve` of modules to start with `src`
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-10-16 09:10:30 +00:00
1 parent 20428dac71
commit 714b9e6c98
23 files changed
+41 -41

No files matched your search

@@ -161,7 +161,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/my-cache",
resolve: "./src/modules/my-cache",
options: {
// any options
ttl: 30,
@@ -116,7 +116,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/my-event",
resolve: "./src/modules/my-event",
options: {
// any options
},
@@ -46,6 +46,6 @@ module.exports = defineConfig({
The objects in the array accept the following properties:
- `resolve`: A string indicating the package name of the module provider or the path to it relative to the `src` directory.
- `resolve`: A string indicating the package name of the module provider or the path to it.
- `id`: A string indicating the provider's unique name or ID.
- `options`: An optional object of the module provider's options.
@@ -157,7 +157,7 @@ export const restockModelHighlights = [
// ...
modules: [
{
resolve: "./modules/restock-notification",
resolve: "./src/modules/restock-notification",
},
]
})
@@ -196,7 +196,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/digital-product",
resolve: "./src/modules/digital-product",
},
]
})
@@ -1520,7 +1520,7 @@ module.exports = defineConfig({
id: "manual",
},
{
resolve: "./modules/digital-product-fulfillment",
resolve: "./src/modules/digital-product-fulfillment",
id: "digital",
},
],
@@ -123,7 +123,7 @@ export const serviceHighlights = [
// ...
modules: [
{
resolve: "./modules/erp",
resolve: "./src/modules/erp",
options: {
apiKey: process.env.ERP_API_KEY,
},
@@ -162,7 +162,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/restaurant",
resolve: "./src/modules/restaurant",
},
]
})
@@ -306,7 +306,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/delivery",
resolve: "./src/modules/delivery",
},
]
})
@@ -142,7 +142,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/marketplace",
resolve: "./src/modules/marketplace",
},
]
})
@@ -160,7 +160,7 @@ module.exports = defineConfig({
// ...
modules: [
{
resolve: "./modules/subscription",
resolve: "./src/modules/subscription",
},
]
})
@@ -19,7 +19,7 @@ import MyCustom from "../models/my-custom"
moduleIntegrationTestRunner<HelloModuleService>({
moduleName: HELLO_MODULE,
moduleModels: [MyCustom],
resolve: "./modules/hello",
resolve: "./src/modules/hello",
testSuite: ({ service }) => {
// TODO write tests
},