Browse Source

Fix drag-drop listing and extension rebuild

Steven Silvester 8 years ago
parent
commit
23b5d77e8f
2 changed files with 3 additions and 2 deletions
  1. 2 2
      jupyterlab/package.json
  2. 1 0
      src/filebrowser/listing.ts

+ 2 - 2
jupyterlab/package.json

@@ -8,7 +8,7 @@
   "dependencies": {
     "es6-promise": "^3.1.2",
     "font-awesome": "^4.6.1",
-    "jupyterlab": "../",
+    "jupyterlab": "file:../",
     "phosphide": "^0.9.4"
   },
   "devDependencies": {
@@ -23,7 +23,7 @@
   },
   "scripts": {
     "clean": "rimraf build",
-    "build": "npm update jupyterlab && webpack --config webpack.conf.js",
+    "build": "rimraf node_modules/jupyterlab && npm install && webpack --config webpack.conf.js",
     "postinstall": "npm dedupe",
     "test": "echo 'no tests specified'"
   },

+ 1 - 0
src/filebrowser/listing.ts

@@ -1058,6 +1058,7 @@ class DirListing extends Widget {
           widget.populated.connect(() => this.model.refresh() );
           widget.context.kernelChanged.connect(() => this.model.refresh() );
         }
+        return widget;
       });
     }