Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 17, 2019
1 parent 5ef9478 commit 499d186
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions fixture.js
Expand Up @@ -8,8 +8,8 @@ const cli = meow({
Usage
foo <input>
`,
autoVersion: process.argv.indexOf('--no-auto-version') === -1,
autoHelp: process.argv.indexOf('--no-auto-help') === -1,
autoVersion: !process.argv.includes('--no-auto-version'),
autoHelp: !process.argv.includes('--no-auto-help'),
flags: {
unicorn: {alias: 'u'},
meow: {default: 'dog'},
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -24,7 +24,7 @@ const meow = (helpText, options) => {
pkg: readPkgUp.sync({
cwd: parentDir,
normalize: false
}).pkg || {},
}).packageJson || {},
argv: process.argv.slice(2),
inferType: false,
input: 'string',
Expand Down
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -40,23 +40,23 @@
],
"dependencies": {
"@types/minimist": "^1.2.0",
"camelcase-keys": "^5.0.0",
"camelcase-keys": "^6.1.1",
"decamelize-keys": "^1.1.0",
"hard-rejection": "^2.0.0",
"minimist-options": "^4.0.1",
"normalize-package-data": "^2.5.0",
"read-pkg-up": "^5.0.0",
"redent": "^2.0.0",
"trim-newlines": "^2.0.0",
"type-fest": "^0.3.0",
"yargs-parser": "^13.0.0"
"read-pkg-up": "^7.0.0",
"redent": "^3.0.0",
"trim-newlines": "^3.0.0",
"type-fest": "^0.8.1",
"yargs-parser": "^16.1.0"
},
"devDependencies": {
"ava": "^1.4.1",
"execa": "^1.0.0",
"indent-string": "^3.2.0",
"tsd": "^0.7.1",
"xo": "^0.24.0"
"ava": "^2.4.0",
"execa": "^3.3.0",
"indent-string": "^4.0.0",
"tsd": "^0.11.0",
"xo": "^0.25.3"
},
"xo": {
"rules": {
Expand Down
5 changes: 2 additions & 3 deletions test.js
@@ -1,7 +1,7 @@
import test from 'ava';
import indentString from 'indent-string';
import execa from 'execa';
import pkg from './package';
import pkg from './package.json';
import meow from '.';

test('return object', t => {
Expand Down Expand Up @@ -80,8 +80,7 @@ test('spawn cli and test input flag', async t => {
t.is(stdout, 'bar');
});

// TODO: This fails in Node.js 7.10.0, but not 6 or 4
test.serial.skip('pkg.bin as a string should work', t => { // eslint-disable-line ava/no-skip-test
test.serial('pkg.bin as a string should work', t => {
meow({
pkg: {
name: 'browser-sync',
Expand Down

0 comments on commit 499d186

Please sign in to comment.