Build system: Make npm optional

This commit is contained in:
Romain Vigier
2022-04-05 12:24:01 +02:00
parent fae6b67f49
commit 772cfd488e
+1 -1
View File
@@ -16,7 +16,7 @@ INSTALL_DIR = get_option('datadir') / 'gnome-shell' / 'extensions' / UUID
gnome = import('gnome')
i18n = import('i18n')
npm_exe = find_program('npm')
npm_exe = find_program('npm', required: false)
if npm_exe.found()
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
endif