Skip to content

Commit

Permalink
fix: shared package wasn't being bundled with the release of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelKurowski committed Jun 17, 2024
1 parent cbf8202 commit 2864921
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-spies-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-storefront/nuxt": patch
---
- **[CHANGED]** shared package wasn't being bundled with the release of the package

23 changes: 20 additions & 3 deletions packages/nuxt/src/runtime/utils/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
import { contextConfig } from "@storefront/shared";

export function getDefaults() {
return contextConfig;
return {
unifiedCommerce: {
middlewareModule: {
defaultMethodsRequestConfig: {
getCategories: { method: "GET" },
getProductDetails: { method: "GET" },
getProductReviews: { method: "GET" },
getProducts: { method: "GET" },
searchProducts: { method: "GET" },
},
},
},
unifiedCms: {
middlewareModule: {
defaultMethodsRequestConfig: {
getEntries: { method: "GET" },
},
},
},
} as const;
}
5 changes: 0 additions & 5 deletions packages/nuxt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"paths": {
"@storefront/shared": ["../shared"]
}
},
}

0 comments on commit 2864921

Please sign in to comment.