diff --git a/.gitignore b/.gitignore index 106df38d6..793da69d3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,3 @@ npm-debug.log gyp-mac-tool .node_pre_gyprc /.idea -.pre-publish-info diff --git a/bin/pre-publish.js b/bin/pre-publish.js deleted file mode 100755 index cef702d3c..000000000 --- a/bin/pre-publish.js +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env node -'use strict'; - -// polyfill for node 10 -var spawnSync = require('spawn-sync'); -var fs = require('fs'); -var semver = require('semver'); - -// Log the packaging environment to be included in the npm bundle -var lsExit = spawnSync('npm', ['ls']).status; -var npmVersion = (spawnSync('npm', ['-v']).stdout || '0.0.0').toString().trim(); - -var info = { - 'versions': process.versions, - 'platform': process.platform, - 'arch': process.arch, - 'npm ls exit code': lsExit, - 'npm version': npmVersion -}; - -fs.writeFileSync('.pre-publish-info', JSON.stringify(info, null, 2) + '\n'); - -if (lsExit !== 0) { - console.error('ls exited with a', lsExit); - // process.exit(1); -} - -if (!semver.gt(npmVersion, '3.0.0') && !process.env.CI) { - console.error('npm version must be above 3.0.0 <', npmVersion); -// process.exit(1); -} - diff --git a/package.json b/package.json index e88534120..10c9045a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serialport", - "version": "3.1.2-beta6", + "version": "3.1.2-beta7", "description": "Node.js package to access serial ports. Welcome your robotic javascript overlords. Better yet, program them!", "author": { "name": "Chris Williams", @@ -10,7 +10,7 @@ "binary": { "module_name": "serialport", "module_path": "build/{configuration}/", - "host": "https://github.com/voodootikigod/node-serialport/releases/download/3.1.2-beta5" + "host": "https://github.com/voodootikigod/node-serialport/releases/download/3.1.2-beta7" }, "main": "./lib/serialport", "repository": {