[neon/qt6/qt6-webengine/Neon/unstable] debian: run npm command within same env as nvm.sh
Scarlett Moore
null at kde.org
Tue Sep 5 18:34:29 BST 2023
Git commit 93be8c8c3fa89940dcbb9847e0c01cbec77bd8e9 by Scarlett Moore.
Committed on 05/09/2023 at 19:33.
Pushed by scarlettmoore into branch 'Neon/unstable'.
run npm command within same env as nvm.sh
M +14 -9 debian/rules
https://invent.kde.org/neon/qt6/qt6-webengine/-/commit/93be8c8c3fa89940dcbb9847e0c01cbec77bd8e9
diff --git a/debian/rules b/debian/rules
index f87dc2a..f5dd1f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,15 +41,20 @@ override_dh_auto_clean:
rm -f $(CURDIR)/$${fname}; \
done
- define run_npm =
- # init nvm and thus npm && # install needed nodejs deps with npm
- source /etc/profile.d/nvm-profile.sh
- npm install pako
- npm install rollup-plugin-terser
- npm install yargs
- endef
- run_npm: ; $(value run_npm)
- .ONESHELL:
+# define run_npm =
+# # init nvm and thus npm && # install needed nodejs deps with npm
+# source /etc/profile.d/nvm-profile.sh
+# npm install pako
+# npm install rollup-plugin-terser
+# npm install yargs
+# endef
+# run_npm: ; $(value run_npm)
+# .ONESHELL:
+ export NVM_DIR=$(HOME)/.nvm" && \
+ [ -s "$(NVM_DIR)/nvm.sh" ] && \. "$(NVM_DIR)/nvm.sh" && \ # This loads nvm
+ npm install pako && \
+ npm install rollup-plugin-terser && \
+ npm install yargs
# Turn on system FFmpeg libraries for 6.3
override_dh_auto_configure:
More information about the Neon-commits
mailing list