diff --git a/apps/nextjs/next.config.js b/apps/nextjs/next.config.js index 388495326..861c52684 100644 --- a/apps/nextjs/next.config.js +++ b/apps/nextjs/next.config.js @@ -1,8 +1,8 @@ import { fileURLToPath } from "url"; -import { createJiti } from "jiti"; +import createJiti from "jiti"; // Import env files to validate at build time. Use jiti so we can load .ts files in here. -await createJiti(fileURLToPath(import.meta.url)).import("./src/env"); +createJiti(fileURLToPath(import.meta.url))("./src/env"); /** @type {import("next").NextConfig} */ const config = { diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json index 11b40aaf6..aa6fa4402 100644 --- a/apps/nextjs/package.json +++ b/apps/nextjs/package.json @@ -41,7 +41,7 @@ "@types/react-dom": "catalog:react18", "dotenv-cli": "^7.4.2", "eslint": "catalog:", - "jiti": "^2.3.3", + "jiti": "^1.21.6", "prettier": "catalog:", "tailwindcss": "catalog:", "typescript": "catalog:" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f64ec12d..199268b3d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -305,10 +305,10 @@ importers: version: 7.4.2 eslint: specifier: 'catalog:' - version: 9.12.0(jiti@2.3.3) + version: 9.12.0(jiti@1.21.6) jiti: - specifier: ^2.3.3 - version: 2.3.3 + specifier: ^1.21.6 + version: 1.21.6 prettier: specifier: 'catalog:' version: 3.3.3 @@ -3225,6 +3225,7 @@ packages: '@xmldom/xmldom@0.7.13': resolution: {integrity: sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==} engines: {node: '>=10.0.0'} + deprecated: this version is no longer supported, please update to at least 0.8.* '@xmldom/xmldom@0.8.10': resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==} @@ -9377,6 +9378,11 @@ snapshots: '@esbuild/win32-x64@0.20.2': optional: true + '@eslint-community/eslint-utils@4.4.0(eslint@9.12.0(jiti@1.21.6))': + dependencies: + eslint: 9.12.0(jiti@1.21.6) + eslint-visitor-keys: 3.4.3 + '@eslint-community/eslint-utils@4.4.0(eslint@9.12.0(jiti@2.3.3))': dependencies: eslint: 9.12.0(jiti@2.3.3) @@ -12672,6 +12678,48 @@ snapshots: eslint-visitor-keys@4.1.0: {} + eslint@9.12.0(jiti@1.21.6): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@1.21.6)) + '@eslint-community/regexpp': 4.11.1 + '@eslint/config-array': 0.18.0 + '@eslint/core': 0.6.0 + '@eslint/eslintrc': 3.1.0 + '@eslint/js': 9.12.0 + '@eslint/plugin-kit': 0.2.0 + '@humanfs/node': 0.16.5 + '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.3.1 + '@types/estree': 1.0.6 + '@types/json-schema': 7.0.15 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.7 + escape-string-regexp: 4.0.0 + eslint-scope: 8.1.0 + eslint-visitor-keys: 4.1.0 + espree: 10.2.0 + esquery: 1.6.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 8.0.0 + find-up: 5.0.0 + glob-parent: 6.0.2 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + json-stable-stringify-without-jsonify: 1.0.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + text-table: 0.2.0 + optionalDependencies: + jiti: 1.21.6 + transitivePeerDependencies: + - supports-color + eslint@9.12.0(jiti@2.3.3): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.3.3))