From cd7741f0eb6929374156f57fbf2a3ca2ae8e37d5 Mon Sep 17 00:00:00 2001 From: Steve Wyckoff Date: Sun, 3 Nov 2024 07:01:54 -0800 Subject: [PATCH 1/2] fix: crypto not defined in cli envVars.ts. t3-oss/create-t3-app#2009 --- cli/src/installers/envVars.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/installers/envVars.ts b/cli/src/installers/envVars.ts index 6288fab1b5..d3108fc074 100644 --- a/cli/src/installers/envVars.ts +++ b/cli/src/installers/envVars.ts @@ -1,3 +1,4 @@ +import crypto from "node:crypto"; import path from "path"; import fs from "fs-extra"; From 902a5cccdd02440feb53549ef5f4853b98999b91 Mon Sep 17 00:00:00 2001 From: Steve Wyckoff Date: Sun, 3 Nov 2024 13:57:53 -0800 Subject: [PATCH 2/2] chore: add changeset --- .changeset/strange-sheep-argue.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/strange-sheep-argue.md diff --git a/.changeset/strange-sheep-argue.md b/.changeset/strange-sheep-argue.md new file mode 100644 index 0000000000..3d592e88c1 --- /dev/null +++ b/.changeset/strange-sheep-argue.md @@ -0,0 +1,5 @@ +--- +"create-t3-app": patch +--- + +Added an import for crypto in the cli envVars.ts to support older node versions.