From 12fccae15d08bc11168fe6b462d978a6787b5c7c Mon Sep 17 00:00:00 2001 From: swyckoff Date: Mon, 4 Nov 2024 00:09:55 -0800 Subject: [PATCH] fix: crypto not defined in cli envVars.ts. t3-oss/create-t3-app#2009 (#2010) --- .changeset/strange-sheep-argue.md | 5 +++++ cli/src/installers/envVars.ts | 1 + 2 files changed, 6 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. 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";