module-builder
module-builder copied to clipboard
Complete solution to build and ship Nuxt modules.
**Reproduction** [Stackblitz](https://stackblitz.com/edit/vitejs-vite-tu4fsx?file=my-module%2Fdist%2Fruntime%2Ftypes%2Findex.d.ts) `Build command`: `cd ~/projects/vitejs-vite-tu4fsx/my-module/ && npm run dev:build && npm run prepack` **Describe the bug** After upgrading from 0.5.5 to 0.8.0 the generated bundle has invalid import paths...
### Reproduction https://stackblitz.com/edit/github-medst6 ### Describe the bug ```vue import { defineComponent, ref } from 'vue'; import type { MyEmit } from '../types'; export default defineComponent({ inheritAttrs: false, emits: {} as...
Hi, after using this template to kickstart my module I encountered a strange type issue inside the nuxt config of the test fixture: It looks like somehow the types exported...
### Environment - Operating System: `Darwin` - Node Version: `v20.11.0` - Nuxt Version: `3.11.2` - CLI Version: `3.11.1` - Nitro Version: `2.9.6` - Package Manager: `[email protected]` - Builder: `-` -...
Besides the `--help` output, we don't really have a place that actually documents the commands provided by `nuxt-module-build`, and it seems like the things that are documented are a bit...
# What happens? My `module.ts` ```ts import type { LogEntry } from "./runtime/server/types/LogEntry"; export interface ModuleOptions { delayOnBan: boolean; log: false | LogEntry; } export default defineNuxtModule({ meta: { name:...
Hello, I have noticed that when a component with `` is created, no `.d.ts` file is created for it. Is there a reason for this and is it correct? ...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^22.13.10` -> `^22.13.14`](https://renovatebot.com/diffs/npm/@types%2fnode/22.13.10/22.13.14) | [](https://docs.renovatebot.com/merge-confidence/) |...
### 🔗 Linked issue ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation or readme) - [x] 🐞 Bug fix (a non-breaking change that fixes...