Nuxt/docs/content/3.api/5.commands/build-module.md
Christian Preston 8f7a7ec06e
feat(nuxi): nuxi build-module command (#7610)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-16 11:40:03 +02:00

17 lines
788 B
Markdown

# `nuxi build-module`
```{bash}
npx nuxi build-module [--stub] [rootDir]
```
The `build-module` command runs `@nuxt/module-builder` to generate `dist` directory within your `rootDir` that contains the full build for your **nuxt-module**.
Option | Default | Description
-------------------------|-----------------|------------------
`rootDir` | `.` | The root directory of the module to bundle.
`--stub` | `false` | Stub out your module for development using [jiti](https://github.com/unjs/jiti#jiti). (**note:** This is mainly for development purposes.)
::alert
This command is only available when you are using `@nuxt/module-builder` to build your module. Please see [this readme](https://github.com/nuxt/module-builder#-nuxt-module-builder) for more information.
::