Forráskód Böngészése

Remove update local

Steven Silvester 6 éve
szülő
commit
dadff0f693
2 módosított fájl, 0 hozzáadás és 49 törlés
  1. 0 10
      buildutils/src/prepublish.ts
  2. 0 39
      buildutils/src/update-local.ts

+ 0 - 10
buildutils/src/prepublish.ts

@@ -7,14 +7,4 @@ import * as utils from './utils';
 utils.run('jlpm run clean:slate');
 utils.run('jlpm run build:packages');
 utils.run('jlpm run build:themes');
-
-// If we are on the main branch, make sure all of the local packages
-// are up to date with npm.
-let branch = utils.run('git rev-parse --abbrev-ref HEAD', {
-  stdio: ['ignore', 'pipe', 'ignore']
-});
-if (branch === 'master') {
-  utils.run('jlpm run update:local');
-}
-
 utils.run('jlpm integrity');

+ 0 - 39
buildutils/src/update-local.ts

@@ -1,39 +0,0 @@
-/*-----------------------------------------------------------------------------
-| Copyright (c) Jupyter Development Team.
-| Distributed under the terms of the Modified BSD License.
-|----------------------------------------------------------------------------*/
-
-import * as path from 'path';
-import * as utils from './utils';
-import packageJson = require('package-json');
-
-console.log('Looking for outdated local package versions...');
-const cmd = 'python setup.py --version';
-const pyversion = utils.run(cmd, { stdio: 'pipe' }, true);
-let version = 'latest';
-if (pyversion.indexOf('rc') !== -1 || pyversion.indexOf('a') !== -1) {
-  version = 'next';
-}
-
-utils.getLernaPaths().map(async pkgPath => {
-  const packagePath = path.join(pkgPath, 'package.json');
-  let data: any;
-  try {
-    data = utils.readJSONFile(packagePath);
-  } catch (e) {
-    console.log('Skipping package ' + packagePath);
-    return;
-  }
-  if (data.private === true) {
-    return;
-  }
-  const releaseData = await packageJson(data.name, { version });
-  const npmVersion = releaseData.version;
-  if (data.version === npmVersion) {
-    return;
-  }
-  data.version = npmVersion;
-  console.log('Updating', data.name, 'to', npmVersion);
-  // Write the file back to disk.
-  utils.writePackageData(packagePath, data);
-});