From 3630d3f3371f13f837051ab2310fc91dff1ed527 Mon Sep 17 00:00:00 2001 From: riz Date: Wed, 19 Nov 2025 22:23:19 +0000 Subject: [PATCH] Fix readdirAsync import error in deployment system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace non-existent readdirAsync from fs-jetpack with Node.js fs/promises.readdir - Remove readdirAsync from fs-jetpack imports - Update loadFilesFromDirectory to use standard readdir function Fixes SyntaxError: Export named 'readdirAsync' not found in module error when running deployment system. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/utils/deploy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/utils/deploy.ts b/pkgs/utils/deploy.ts index e53a910..a10dacf 100644 --- a/pkgs/utils/deploy.ts +++ b/pkgs/utils/deploy.ts @@ -3,10 +3,10 @@ import { exists, existsAsync, read, - readdirAsync, removeAsync, writeAsync, } from "fs-jetpack"; +import { readdir } from "fs/promises"; import { decode } from "msgpackr"; import { createRouter } from "radix3"; import { startBrCompress } from "./br-load"; @@ -279,7 +279,7 @@ export const deploy = { } }, async loadFilesFromDirectory(dirPath: string, prefix: string, target: Record) { - const files = await readdirAsync(dirPath); + const files = await readdir(dirPath); for (const file of files) { const fullPath = dir(`${dirPath}/${file}`);