From 77afb48828983a09c05b8a27970a1f6e44e41cd2 Mon Sep 17 00:00:00 2001 From: l33tlinuxh4x0r Date: Sat, 24 May 2025 08:47:52 -0400 Subject: [PATCH] Update build.py Fixed a bug with newer npm builds. Now works with the latest nodejs and npm. --- build.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.py b/build.py index a81fcb65..74cac509 100755 --- a/build.py +++ b/build.py @@ -48,10 +48,7 @@ def possible_rollup_binary_paths(config): args = [npm, 'bin'] ran_npm = subprocess.run(args, capture_output=True, encoding='utf-8') - if ran_npm.returncode != 0: - raise Exception("npm bin failed. exit code: {}. command line '{}'. stderr: {}. stdout: {}" - .format(ran_npm.returncode, "' '".join(args), ran_npm.stderr, ran_npm.stdout)) - npm_bin_dir = ran_npm.stdout.strip() + npm_bin_dir = os.getcwd() + "/node_modules/.bin/" # if we're running on Windows, then we need to explicitly use rollup.cmd or rollup.ps1 rather than rollup - rollup will still exist, it will just be an unexecutable shell file ._. if os.name == 'nt': return [