File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11from __future__ import print_function
22
33import pipes
4+ import shutil
45import subprocess
56import sys
67import traceback
@@ -129,7 +130,10 @@ def run(self):
129130 log .info ("Installing Javascript..." )
130131 try :
131132 js_dir = str (package_dir / "client" / "app" )
132- for args in ("npm install" , "npm run build" ):
133+ npm = shutil .which ("npm" ) # this is required on windows
134+ if npm is None :
135+ raise RuntimeError ("NPM is not installed." )
136+ for args in (f"{ npm } install" , f"{ npm } run build" ):
133137 args_list = args .split ()
134138 log .info (f"> { list2cmdline (args_list )} " )
135139 subprocess .run (args_list , cwd = js_dir )
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def validate_vdom(value: Any) -> None:
9191class ImportSourceDict (TypedDict ):
9292 source : str
9393 fallback : Any
94- sourceType : str
94+ sourceType : str # noqa
9595 exportsMount : bool # noqa
9696
9797
You can’t perform that action at this time.
0 commit comments