From 2a7cc86db0672d6bd75abcc045ff82246d3444a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:24:38 +0800 Subject: [PATCH] fix: get NodeJSStatic failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com> --- builder/parser/code/lang.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/parser/code/lang.go b/builder/parser/code/lang.go index 0805aeb3d6..260c24f708 100644 --- a/builder/parser/code/lang.go +++ b/builder/parser/code/lang.go @@ -234,9 +234,7 @@ func nodejs(homepath string) Lang { } func nodeJSStatic(homepath string) Lang { if ok, _ := util.FileExists(path.Join(homepath, "package.json")); ok { - if ok, _ := util.FileExists(path.Join(homepath, "nodestatic.json")); ok { - return NodeJSStatic - } + return NodeJSStatic } return NO }