瀏覽代碼

Merge pull request #2818 from ian-r-rose/update_core_pre_install

Call update-core.js before installing so that package.json is up-to-date.
Steven Silvester 7 年之前
父節點
當前提交
6d325a5b61
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      package.json
  2. 3 0
      scripts/add-sibling.js

+ 1 - 0
package.json

@@ -24,6 +24,7 @@
     "test:firefox": "lerna run test:firefox --stream",
     "test:ie": "lerna run test:ie --concurrency 1 --stream",
     "update:dependency": "node scripts/update-dependency.js",
+    "update:core": "cd jupyterlab && node update-core.js",
     "watch:packages": "watch \"npm run build:packages\" ./packages/** --wait 10 --filter=scripts/watch-filter.js --ignoreDotFiles",
     "watch": "watch \"npm run build\" ./packages/** --wait 10 --filter=scripts/watch-filter.js --ignoreDotFiles",
     "watch:main": "npm run watch",

+ 3 - 0
scripts/add-sibling.js

@@ -68,3 +68,6 @@ var indexPath = path.join(basePath, 'packages', 'all-packages', 'src', 'index.ts
 var index = fs.readFileSync(indexPath, 'utf8');
 index = index + 'import "' + package.name + '";\n';
 fs.writeFileSync(indexPath, index);
+
+// Update the core jupyterlab build dependencies.
+childProcess.execSync('npm run update:core');