diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1317e5002..f1f604647 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,10 +9,10 @@ jobs: vmImage: 'ubuntu-18.04' strategy: matrix: - node_12_x: - node_version: 12.x node_14_x: node_version: 14.x + node_16_x: + node_version: 16.x steps: - task: NodeTool@0 inputs: @@ -33,10 +33,10 @@ jobs: vmImage: 'macOS-latest' strategy: matrix: - node_12_x: - node_version: 12.x node_14_x: node_version: 14.x + node_16_x: + node_version: 16.x steps: - task: NodeTool@0 inputs: @@ -57,10 +57,10 @@ jobs: vmImage: 'windows-2019' strategy: matrix: - node_12_x: - node_version: 12.x node_14_x: node_version: 14.x + node_16_x: + node_version: 16.x steps: - task: NodeTool@0 inputs: @@ -87,7 +87,7 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '12.x' + versionSpec: '16.x' displayName: 'Install Node.js' - script: | npm i diff --git a/package.json b/package.json index 6da2bfe85..acb1ee0e5 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "build": "tsc -b ./src/tsconfig.json", "watch": "tsc -b -w ./src/tsconfig.json", "lint": "eslint -c .eslintrc.js --ext .ts src/", - "install": "node scripts/install.js", "postinstall": "node scripts/post-install.js", "test": "cross-env NODE_ENV=test mocha -R spec --exit lib/*.test.js", "posttest": "npm run lint", @@ -44,7 +43,7 @@ "prepublishOnly": "npm run build" }, "dependencies": { - "nan": "^2.14.0" + "nan": "^2.17.0" }, "devDependencies": { "@types/mocha": "^7.0.2", @@ -56,8 +55,5 @@ "mocha": "^7.1.1", "ps-list": "^6.0.0", "typescript": "^3.8.3" - }, - "peerDependencies": { - "node-gyp": "^8.3.0" } } diff --git a/scripts/install.js b/scripts/install.js deleted file mode 100644 index d88b7f108..000000000 --- a/scripts/install.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -const os = require('os'); -const path = require('path'); -const spawn = require('child_process').spawn; - -const gypArgs = ['rebuild']; -if (process.env.NODE_PTY_DEBUG) { - gypArgs.push('--debug'); -} -const gypProcess = spawn(os.platform() === 'win32' ? 'node-gyp.cmd' : 'node-gyp', gypArgs, { - cwd: path.join(__dirname, '..'), - stdio: 'inherit' -}); - -gypProcess.on('exit', function (code) { - process.exit(code); -}); diff --git a/yarn.lock b/yarn.lock index ba4b1fa54..1fb746d61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -946,10 +946,10 @@ mute-stream@0.0.8: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nan@^2.14.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" - integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== +nan@^2.17.0: + version "2.17.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" + integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== natural-compare@^1.4.0: version "1.4.0"