mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
npm2 makes having deps during install near impossible
This commit is contained in:
parent
3d9c12d597
commit
bd959f23ec
3 changed files with 2 additions and 35 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,4 +7,3 @@ npm-debug.log
|
|||
gyp-mac-tool
|
||||
.node_pre_gyprc
|
||||
/.idea
|
||||
.pre-publish-info
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue