Skip to content

Commit

Permalink
upgrade jiti to v2 (#1203)
Browse files Browse the repository at this point in the history
Co-authored-by: juliusmarminge <[email protected]>
  • Loading branch information
ahkhanjani and juliusmarminge authored Oct 7, 2024
1 parent adc3890 commit 3cb11ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -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.
createJiti(fileURLToPath(import.meta.url))("./src/env");
await createJiti(fileURLToPath(import.meta.url)).import("./src/env");

/** @type {import("next").NextConfig} */
const config = {
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/react-dom": "catalog:react18",
"dotenv-cli": "^7.4.2",
"eslint": "catalog:",
"jiti": "^1.21.6",
"jiti": "^2.3.1",
"prettier": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:"
Expand Down
22 changes: 14 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3cb11ea

Please sign in to comment.