module-builder icon indicating copy to clipboard operation
module-builder copied to clipboard

Complete solution to build and ship Nuxt modules.

Results 24 module-builder issues
Sort by recently updated
recently updated
newest added

When writing a module i have a very strange issue - the module works fine and the composables are fine - but when i `git init .` and it creates...

needs reproduction

I'm creating a module but it also has a layer directory. I think the method I want to use, most in-sync with the docs, is to simply copy the layer...

needs reproduction

the sfc use options style with typescript, as follow: ```vue export default defineComponent({ pros:{ foo:{ type: String, default: "bar" } } }) ``` after build: ```vue export default defineComponent({ pros:{...

Running `nuxt-module-build build --stub` generates `types.d.mts` like: ```ts import type { ModuleOptions, ModuleHooks, RuntimeModuleHooks, ModuleRuntimeConfig, ModulePublicRuntimeConfig } from './module' declare module '#app' { interface RuntimeNuxtHooks extends RuntimeModuleHooks {} } declare...

question

Let's imagine that I'm creating some helpers which I want to use in my modules definition. Some of them so specific and never will be included in @nuxt/kit, but I...

Assuming we're only targeting `type: module` packages, how to disable `module.cjs` file generation in `/dist` directory? I tried this but the file is still generated: ```typescript // build.config.ts import {...

Sometimes you want to copy static files (in my case a ts file that servers as the source for `addTemplate`). This currently doesn't seem to be possible.

Automatically detect `src/cli.ts` and generate `nuxi-{name}` binary also ensure it is added to `bin` in `package.json` with the correct aliases (nuxt- and nuxi-) Related to: https://github.com/nuxt/nuxt.js/issues/13634

If i try import package `import { buildModule } from '@nuxt/module-builder';`, i get this error ``` No "exports" main defined in .../node_modules/@nuxt/module-builder/package.json ``` Can you add `exports` or `main` to...

enhancement
pending

In order to make this possible, we need to load the module once using [untyped loader](https://github.com/unjs/untyped).