From 52b83d05bbb280b9cacb659cf91bb0d465a56577 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 2 Jul 2024 19:49:25 -0500 Subject: [PATCH] build: explicitly use npm lts/iron when building package --- .gitignore | 1 + tasks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8ee54e8..9f860c6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ coverage *.sw? *.tsbuildinfo +*~ diff --git a/tasks.py b/tasks.py index a33596f..d6b57ab 100644 --- a/tasks.py +++ b/tasks.py @@ -24,7 +24,7 @@ def release(c): version = js['version'] # build the app, create zip archive - c.run('npm run build') + c.run("bash -lc 'nvm use lts/iron; npm run build'") os.chdir('dist') filename = f'myweather-{version}.zip' c.run(f'zip --recurse-paths {filename} *')