pre-publish is too flakey

This commit is contained in:
Francis Gulotta 2016-05-12 15:41:42 -04:00
parent 0b68db2c45
commit 4d3fd22bb6

View file

@ -4,7 +4,7 @@
// polyfill for node 10
var spawnSync = require('spawn-sync');
var fs = require('fs');
// var semver = require('semver');
var semver = require('semver');
// Log the packaging environment to be included in the npm bundle
var lsExit = spawnSync('npm', ['ls']).status;
@ -22,11 +22,11 @@ fs.writeFileSync('.pre-publish-info', JSON.stringify(info, null, 2) + '\n');
if (lsExit !== 0) {
console.error('ls exited with a', lsExit);
process.exit(1);
// process.exit(1);
}
// if (!semver.gt(npmVersion, '3.0.0') && !process.env.CI) {
// console.log('npm version must be above 3.0.0 <', npmVersion);
if (!semver.gt(npmVersion, '3.0.0') && !process.env.CI) {
console.error('npm version must be above 3.0.0 <', npmVersion);
// process.exit(1);
// }
}