fork of hey-api/openapi-ts because I need some additional things

Merge pull request #1939 from a1mersnow/main

fix: watch at prepare & sdk missing

authored by

Lubos 🍈 and committed by
GitHub
b8854053 cd5d6530

+20 -1
+5
.changeset/spotty-cows-cry.md
··· 1 + --- 2 + "@hey-api/nuxt": patch 3 + --- 4 + 5 + fix: avoid duplicate definition of `@hey-api/client-nuxt` plugin
+5
.changeset/two-fans-train.md
··· 1 + --- 2 + "@hey-api/nuxt": patch 3 + --- 4 + 5 + fix: skip watch mode in prepare step
+10 -1
packages/nuxt/src/module.ts
··· 48 48 output: { 49 49 path: path.join(nuxt.options.buildDir, 'client'), 50 50 }, 51 - plugins: ['@hey-api/client-nuxt'], 51 + plugins: (options.config.plugins || []).some((plugin: any) => { 52 + const pluginName = typeof plugin === 'string' ? plugin : plugin.name; 53 + return pluginName === '@hey-api/plugin-nuxt'; 54 + }) 55 + ? [] 56 + : ['@hey-api/client-nuxt'], 52 57 } satisfies Partial<UserConfig>) as UserConfig; 58 + 59 + if (nuxt.options._prepare) { 60 + config.watch = false; 61 + } 53 62 54 63 const folder = path.resolve( 55 64 nuxt.options.rootDir,