Skip to content

Commit 64f9773

Browse files
committed
fix: skip gen during prepare if no input
skipping as @hey-api/openapi-ts throws an exception if missing input which makes prepare fail
1 parent 6952c5d commit 64f9773

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/nuxt/src/module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ export default defineNuxtModule<ModuleOptions>({
5858

5959
if (nuxt.options._prepare) {
6060
config.watch = false;
61+
62+
if (!config.input && options.autoImport) {
63+
return;
64+
}
6165
}
6266

6367
const folder = path.resolve(

0 commit comments

Comments
 (0)