Skip to content

Commit a904ded

Browse files
committed
fix: exclude .ts from the generated collections file
1 parent 06071d1 commit a904ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default defineNuxtModule<ModuleOptions>({
111111
getContents: async () => {
112112
const files = await resolveCollectionFiles()
113113
return `import type { StoreSchema } from '@rstore/shared'
114-
${files.map((file, index) => `import * as M${index} from '${file}'`).join('\n')}
114+
${files.map((file, index) => `import * as M${index} from '${file.replace('.ts', '')}'`).join('\n')}
115115
export default [
116116
${files.map((file, index) => `...Object.values(M${index}),`).join('\n')}
117117
] satisfies StoreSchema`

0 commit comments

Comments
 (0)