From 5a3fdf25ffbf98c796ed9b77e6c5d0fcd7de47c4 Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Mon, 7 Apr 2025 22:45:58 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore(infra):=20Upgrade=20to=20s?= =?UTF-8?q?st=20v3.11.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sst.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sst.config.ts b/sst.config.ts index e0cc2f25..3bff7ab7 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -1,5 +1,5 @@ /// -import { readdirSync } from "fs"; +// import { readdirSync } from "fs"; export default $config({ app(input) { return { @@ -20,6 +20,7 @@ export default $config({ }; }, async run() { + const fs = await import("fs") $transform(sst.aws.Function, (args) => { args.environment = $resolve([args.environment]).apply(([environment]) => { @@ -31,7 +32,7 @@ export default $config({ }); const outputs = {}; - for (const value of readdirSync("./infra/")) { + for (const value of fs.readdirSync("./infra/")) { const result = await import("./infra/" + value); if (result.outputs) Object.assign(outputs, result.outputs); }