diff --git a/packages/cli/src/utils/executeHooks.ts b/packages/cli/src/utils/executeHooks.ts index d14bfa9a3..281df8032 100644 --- a/packages/cli/src/utils/executeHooks.ts +++ b/packages/cli/src/utils/executeHooks.ts @@ -39,8 +39,9 @@ export async function executeHooks({ hooks, logLevel }: ExecutingHooksProps): Pr const subProcess = await execa(cmd, _args, { detached: true, - signal: abortController.signal, - }).pipeStdout?.(oraWritable as Writable) + cancelSignal: abortController.signal, + stdout: ['pipe', oraWritable], + }) spinner.suffixText = '' if (logLevel === LogLevel.silent) { diff --git a/packages/mocks/hellowWorld.js b/packages/mocks/hellowWorld.js new file mode 100644 index 000000000..9d79514e4 --- /dev/null +++ b/packages/mocks/hellowWorld.js @@ -0,0 +1 @@ +export const hallo = 'world' diff --git a/packages/swagger-ts/src/types.ts b/packages/swagger-ts/src/types.ts index 910fd49f3..6191d4cde 100644 --- a/packages/swagger-ts/src/types.ts +++ b/packages/swagger-ts/src/types.ts @@ -117,7 +117,7 @@ type ResolvedOptions = { transformers: NonNullable oasType: NonNullable usedEnumNames: Record - mapper:Record + mapper: Record } export type FileMeta = {