From bfbfe883515c247685cd034600b890cc1aa613b6 Mon Sep 17 00:00:00 2001 From: Young-Jin Park Date: Mon, 18 May 2026 15:04:17 -0400 Subject: [PATCH] fix: use yargs main entry for node 26 compatibility The yargs/yargs subpath resolves to an extensionless file in a type: module package, which Node 26 loads as ESM. That file uses require() and throws. The yargs main entry is real CommonJS and its default export is still the callable factory. --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 81f6c5c..eb94eb6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,4 +1,4 @@ -import yargs from "yargs/yargs"; +import yargs from "yargs"; import { build } from "./build"; import { loadConfig, resolveProjectPath } from "./config";