diff --git a/build.py b/build.py index a81fcb6..74cac50 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 [