@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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3909,7 +3909,8 @@ var GeneratorRunner = class {
|
|
|
3909
3909
|
previousOutputs,
|
|
3910
3910
|
customTypes: this.options.customTypes ?? /* @__PURE__ */ new Map(),
|
|
3911
3911
|
pluginEnums: this.options.pluginEnums ?? /* @__PURE__ */ new Map(),
|
|
3912
|
-
localeConfig: this.options.localeConfig
|
|
3912
|
+
localeConfig: this.options.localeConfig,
|
|
3913
|
+
force: this.options.force
|
|
3913
3914
|
};
|
|
3914
3915
|
const result = await definition.generate(ctx);
|
|
3915
3916
|
const generatorOutputs = Array.isArray(result) ? result : [result];
|
|
@@ -4281,9 +4282,10 @@ var PluginManager = class {
|
|
|
4281
4282
|
* Runs all registered generators in topological order.
|
|
4282
4283
|
* @param schemas - The schemas to generate from
|
|
4283
4284
|
* @param changes - Schema changes detected from lock file comparison
|
|
4285
|
+
* @param options - Additional options
|
|
4284
4286
|
* @returns Result with all generated outputs
|
|
4285
4287
|
*/
|
|
4286
|
-
async runGenerators(schemas, changes) {
|
|
4288
|
+
async runGenerators(schemas, changes, options) {
|
|
4287
4289
|
const customTypes = /* @__PURE__ */ new Map();
|
|
4288
4290
|
for (const [name, registeredType] of this._types) {
|
|
4289
4291
|
const { pluginName, pluginVersion, ...typeDefinition } = registeredType;
|
|
@@ -4294,7 +4296,8 @@ var PluginManager = class {
|
|
|
4294
4296
|
logger: this._logger,
|
|
4295
4297
|
customTypes,
|
|
4296
4298
|
pluginEnums: this._enums,
|
|
4297
|
-
localeConfig: this._localeConfig
|
|
4299
|
+
localeConfig: this._localeConfig,
|
|
4300
|
+
force: options?.force
|
|
4298
4301
|
});
|
|
4299
4302
|
for (const gen of this._generators.values()) {
|
|
4300
4303
|
runner.register(gen);
|