Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 30, 2019
1 parent abe21ab commit 818ff4b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '12'
- '10'
- '8'
before_script:
- npm install --global npm@6.8.0
20 changes: 11 additions & 9 deletions package.json
Expand Up @@ -4,9 +4,10 @@
"description": "A better `npm publish`",
"license": "MIT",
"repository": "sindresorhus/np",
"funding": "https://github.com/sindresorhus/np?sponsor=1",
"bin": "source/cli.js",
"engines": {
"node": ">=8",
"node": ">=10",
"npm": ">=6.8.0",
"git": ">=2.11.0",
"yarn": ">=1.7.0"
Expand All @@ -33,21 +34,22 @@
"any-observable": "^0.5.0",
"async-exit-hook": "^2.0.1",
"chalk": "^3.0.0",
"cosmiconfig": "^5.2.1",
"cosmiconfig": "^6.0.0",
"del": "^4.1.0",
"escape-string-regexp": "^2.0.0",
"execa": "^3.4.0",
"execa": "^4.0.0",
"github-url-from-git": "^1.5.0",
"has-yarn": "^2.1.0",
"hosted-git-info": "^3.0.0",
"inquirer": "^7.0.0",
"is-installed-globally": "^0.3.1",
"is-scoped": "^2.1.0",
"issue-regex": "^2.0.0",
"issue-regex": "^3.1.0",
"listr": "^0.14.3",
"listr-input": "^0.2.0",
"log-symbols": "^3.0.0",
"meow": "^5.0.0",
"meow": "^6.0.0",
"new-github-release-url": "^1.0.0",
"npm-name": "^5.4.0",
"onetime": "^5.1.0",
"open": "^7.0.0",
Expand All @@ -56,17 +58,17 @@
"p-timeout": "^3.1.0",
"pkg-dir": "^4.1.0",
"read-pkg-up": "^7.0.0",
"rxjs": "^6.3.3",
"semver": "^6.1.2",
"rxjs": "^6.5.4",
"semver": "^7.1.1",
"split": "^1.0.0",
"symbol-observable": "^1.2.0",
"terminal-link": "^2.0.0",
"update-notifier": "^3.0.0"
"update-notifier": "^4.0.0"
},
"devDependencies": {
"ava": "^2.3.0",
"proxyquire": "^2.1.0",
"sinon": "^7.3.2",
"sinon": "^8.0.1",
"xo": "^0.25.3"
}
}
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -38,7 +38,7 @@

## Prerequisite

- Node.js 8 or later
- Node.js 10 or later
- npm 6.8.0 or later
- Git 2.11 or later

Expand Down
2 changes: 1 addition & 1 deletion source/config.js
Expand Up @@ -2,7 +2,7 @@
const os = require('os');
const isInstalledGlobally = require('is-installed-globally');
const pkgDir = require('pkg-dir');
const cosmiconfig = require('cosmiconfig');
const {cosmiconfig} = require('cosmiconfig');

module.exports = async () => {
const searchDir = isInstalledGlobally ? os.homedir() : await pkgDir();
Expand Down
3 changes: 2 additions & 1 deletion source/git-util.js
Expand Up @@ -140,7 +140,8 @@ exports.removeLastCommit = async () => {

const gitVersion = async () => {
const {stdout} = await execa('git', ['version']);
return stdout.match(/git version (\d+\.\d+\.\d+).*/)[1];
const match = /git version (?<version>\d+\.\d+\.\d+).*/.exec(stdout);
return match && match.groups.version;
};

exports.verifyRecentGitVersion = async () => {
Expand Down
39 changes: 0 additions & 39 deletions source/new-github-release-url.js

This file was deleted.

2 changes: 1 addition & 1 deletion source/release-task-helper.js
@@ -1,6 +1,6 @@
'use strict';
const open = require('open');
const newGithubReleaseUrl = require('./new-github-release-url');
const newGithubReleaseUrl = require('new-github-release-url');
const {getTagVersionPrefix} = require('./util');
const version = require('./version');

Expand Down

0 comments on commit 818ff4b

Please sign in to comment.