chore: standardize ESM-first architecture and resolve all type/test/lint errors

This commit is contained in:
2026-02-11 01:33:44 +01:00
parent b6fbead807
commit 5b4d3ebb41
8 changed files with 181 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import { z } from 'zod';
import { validateMintelEnv, mintelEnvSchema } from '@mintel/next-utils';
import { validateMintelEnv, mintelEnvSchema, withMintelRefinements } from '@mintel/next-utils';
/**
* Environment variable schema.
@@ -25,9 +25,9 @@ const envExtension = {
};
/**
* Full schema including Mintel base
* Full schema including Mintel base and refinements
*/
export const envSchema = z.object(mintelEnvSchema).extend(envExtension);
export const envSchema = withMintelRefinements(z.object(mintelEnvSchema).extend(envExtension));
/**
* Validated environment object.