@famgia/omnify-core 2.0.46 → 2.0.48

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.
package/dist/index.d.cts CHANGED
@@ -646,9 +646,12 @@ declare class PluginManager {
646
646
  * Runs all registered generators in topological order.
647
647
  * @param schemas - The schemas to generate from
648
648
  * @param changes - Schema changes detected from lock file comparison
649
+ * @param options - Additional options
649
650
  * @returns Result with all generated outputs
650
651
  */
651
- runGenerators(schemas: SchemaCollection, changes?: readonly SchemaChange[]): Promise<GeneratorRunResult>;
652
+ runGenerators(schemas: SchemaCollection, changes?: readonly SchemaChange[], options?: {
653
+ force?: boolean;
654
+ }): Promise<GeneratorRunResult>;
652
655
  /**
653
656
  * Clears all registered plugins, types, and generators.
654
657
  */
package/dist/index.d.ts CHANGED
@@ -646,9 +646,12 @@ declare class PluginManager {
646
646
  * Runs all registered generators in topological order.
647
647
  * @param schemas - The schemas to generate from
648
648
  * @param changes - Schema changes detected from lock file comparison
649
+ * @param options - Additional options
649
650
  * @returns Result with all generated outputs
650
651
  */
651
- runGenerators(schemas: SchemaCollection, changes?: readonly SchemaChange[]): Promise<GeneratorRunResult>;
652
+ runGenerators(schemas: SchemaCollection, changes?: readonly SchemaChange[], options?: {
653
+ force?: boolean;
654
+ }): Promise<GeneratorRunResult>;
652
655
  /**
653
656
  * Clears all registered plugins, types, and generators.
654
657
  */
package/dist/index.js CHANGED
@@ -3788,7 +3788,8 @@ var GeneratorRunner = class {
3788
3788
  previousOutputs,
3789
3789
  customTypes: this.options.customTypes ?? /* @__PURE__ */ new Map(),
3790
3790
  pluginEnums: this.options.pluginEnums ?? /* @__PURE__ */ new Map(),
3791
- localeConfig: this.options.localeConfig
3791
+ localeConfig: this.options.localeConfig,
3792
+ force: this.options.force
3792
3793
  };
3793
3794
  const result = await definition.generate(ctx);
3794
3795
  const generatorOutputs = Array.isArray(result) ? result : [result];
@@ -4160,9 +4161,10 @@ var PluginManager = class {
4160
4161
  * Runs all registered generators in topological order.
4161
4162
  * @param schemas - The schemas to generate from
4162
4163
  * @param changes - Schema changes detected from lock file comparison
4164
+ * @param options - Additional options
4163
4165
  * @returns Result with all generated outputs
4164
4166
  */
4165
- async runGenerators(schemas, changes) {
4167
+ async runGenerators(schemas, changes, options) {
4166
4168
  const customTypes = /* @__PURE__ */ new Map();
4167
4169
  for (const [name, registeredType] of this._types) {
4168
4170
  const { pluginName, pluginVersion, ...typeDefinition } = registeredType;
@@ -4173,7 +4175,8 @@ var PluginManager = class {
4173
4175
  logger: this._logger,
4174
4176
  customTypes,
4175
4177
  pluginEnums: this._enums,
4176
- localeConfig: this._localeConfig
4178
+ localeConfig: this._localeConfig,
4179
+ force: options?.force
4177
4180
  });
4178
4181
  for (const gen of this._generators.values()) {
4179
4182
  runner.register(gen);