Skip to content

Commit

Permalink
wip fixing nuxt module build
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jun 11, 2024
1 parent d3274db commit ae41148
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 53 deletions.
5 changes: 3 additions & 2 deletions packages/nuxt/dist/module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const module = defineNuxtModule({
const resolver = createResolver(import.meta.url);
const runtimeDir = resolver.resolve("./runtime");
const pluginDir = resolver.resolve("./runtime/plugins");
const storeDir = resolver.resolve("./runtime/store");
if (options.includeStore) {
switch (options.theme) {
case "defaultTheme":
Expand Down Expand Up @@ -101,7 +100,9 @@ const module = defineNuxtModule({
});
}
if (options.includeStore) {
await installModule("@pinia/nuxt", { storesDirs: ["./store/**", resolver.resolve(storeDir)] });
await installModule("@pinia/nuxt", {
storesDirs: ["./store/**", resolver.resolve(runtimeDir, "store")]
});
}
}
});
Expand Down
102 changes: 51 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae41148

Please sign in to comment.