@workos/oagen 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2394,6 +2394,7 @@ function buildEmitterContext(spec, options) {
2394
2394
  overlayLookup: options.overlayLookup,
2395
2395
  resolvedOperations: resolveOperations(spec, options.operationHints, options.mountRules),
2396
2396
  modelHints: options.modelHints,
2397
+ emitterOptions: options.emitterOptions,
2397
2398
  targetDir: options.target,
2398
2399
  priorTargetManifestPaths: options.priorTargetManifestPaths
2399
2400
  };
@@ -2832,8 +2833,9 @@ async function removeEmptyParents(startDir, stopDir) {
2832
2833
  //#endregion
2833
2834
  //#region src/engine/orchestrator.ts
2834
2835
  async function generate(spec, emitter, options) {
2836
+ const outputPrevManifestForCtx = options.noPrune ? null : await readManifest(options.outputDir);
2835
2837
  const targetManifestForCtx = options.target && !options.noPrune ? await readManifest(options.target) : null;
2836
- const priorTargetManifestPaths = targetManifestForCtx ? new Set(targetManifestForCtx.files) : void 0;
2838
+ const priorTargetManifestPaths = targetManifestForCtx ? new Set(targetManifestForCtx.files) : outputPrevManifestForCtx ? new Set(outputPrevManifestForCtx.files) : void 0;
2837
2839
  const { files: withHeaders, header, operations } = generateFiles(spec, emitter, {
2838
2840
  ...options,
2839
2841
  priorTargetManifestPaths
@@ -2845,7 +2847,7 @@ async function generate(spec, emitter, options) {
2845
2847
  }
2846
2848
  return withHeaders;
2847
2849
  }
2848
- const outputPrevManifest = options.noPrune ? null : await readManifest(options.outputDir);
2850
+ const outputPrevManifest = outputPrevManifestForCtx;
2849
2851
  const writeResult = await writeFiles(withHeaders, options.outputDir, {
2850
2852
  language: emitter.language,
2851
2853
  header
@@ -3375,4 +3377,4 @@ function summarize(changes) {
3375
3377
  //#endregion
3376
3378
  export { MANIFEST_FILENAME as a, treeShakeFiles as c, collectReferencedNames as d, generateAllFiles as f, resolveOperations as h, generate as i, applyFileHeaders as l, deriveMethodName as m, getEmitter as n, integrateGeneratedFiles as o, generateFiles as p, registerEmitter as r, mapFilesForTargetIntegration as s, diffSpecs as t, buildEmitterContext as u };
3377
3379
 
3378
- //# sourceMappingURL=diff-JU1bdT5_.mjs.map
3380
+ //# sourceMappingURL=diff-BcQbWkj4.mjs.map