Browse Source

Ensure watched page is always current

Steven Silvester 7 năm trước cách đây
mục cha
commit
738a45f781
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      jupyterlab/commands.py

+ 1 - 6
jupyterlab/commands.py

@@ -107,15 +107,10 @@ def run(cmd, **kwargs):
 
 def ensure_dev_build(logger=None):
     """Ensure that the dev build assets are there"""
-    cmd = [get_npm_name(), 'run', 'build:packages']
+    cmd = [get_npm_name(), 'run', 'build']
     func = partial(run, cmd, cwd=os.path.dirname(here), logger=logger)
     loop = IOLoop.instance()
     loop.instance().run_sync(func)
-    if os.path.exists(os.path.join(here, 'build')):
-        return
-    cmd = [get_npm_name(), 'run', 'build']
-    func = partial(run, cmd, cwd=here, logger=logger)
-    loop.instance().run_sync(cmd, kwargs=dict(cwd=here, logger=logger))
 
 
 def watch(cwd, logger=None):