ava-init
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -25,4 +25,6 @@ 'use strict'; | ||
const cmd = 'ava' + (args.length > 0 ? ' ' + args.join(' ') : ''); | ||
const s = pkg.scripts = pkg.scripts ? pkg.scripts : {}; | ||
pkg.scripts = pkg.scripts ? pkg.scripts : {}; | ||
const s = pkg.scripts; | ||
if (s.test && s.test !== DEFAULT_TEST_SCRIPT) { | ||
@@ -29,0 +31,0 @@ s.test = s.test.replace(/\bnode (test\/)?test\.js\b/, cmd); |
{ | ||
"name": "ava-init", | ||
"version": "0.2.0", | ||
"description": "Add AVA to your project", | ||
"license": "MIT", | ||
"repository": "avajs/ava-init", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"init", | ||
"initialize", | ||
"add", | ||
"create", | ||
"setup", | ||
"generate", | ||
"generator", | ||
"scaffold", | ||
"ava", | ||
"test", | ||
"runner" | ||
], | ||
"dependencies": { | ||
"arr-exclude": "^1.0.0", | ||
"execa": "^0.5.0", | ||
"has-yarn": "^1.0.0", | ||
"read-pkg-up": "^2.0.0", | ||
"write-pkg": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"dot-prop": "^4.1.0", | ||
"temp-write": "^2.0.1", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
"name": "ava-init", | ||
"version": "0.2.1", | ||
"description": "Add AVA to your project", | ||
"license": "MIT", | ||
"repository": "avajs/ava-init", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"init", | ||
"initialize", | ||
"add", | ||
"create", | ||
"setup", | ||
"generate", | ||
"generator", | ||
"scaffold", | ||
"ava", | ||
"test", | ||
"runner" | ||
], | ||
"dependencies": { | ||
"arr-exclude": "^1.0.0", | ||
"execa": "^0.7.0", | ||
"has-yarn": "^1.0.0", | ||
"read-pkg-up": "^2.0.0", | ||
"write-pkg": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"dot-prop": "^4.1.0", | ||
"temp-write": "^3.3.0", | ||
"xo": "*" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # ava-init [![Build Status: Linux](https://travis-ci.org/avajs/ava-init.svg?branch=master)](https://travis-ci.org/avajs/ava-init) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/abj17qsw0j1rts7l/branch/master?svg=true)](https://ci.appveyor.com/project/ava/ava-init/branch/master) | ||
``` | ||
$ npm install --save ava-init | ||
$ npm install ava-init | ||
``` | ||
@@ -36,3 +36,3 @@ | ||
Type: `string`<br> | ||
Default: `'.'` | ||
Default: `process.cwd()` | ||
@@ -39,0 +39,0 @@ Current working directory. |
Sorry, the diff of this file is not supported yet
51
4529
+ Addedcross-spawn@5.1.0(transitive)
+ Addedexeca@0.7.0(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedwrite-pkg@3.2.0(transitive)
- Removedcross-spawn@4.0.2(transitive)
- Removedexeca@0.5.1(transitive)
- Removedget-stream@2.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedsort-keys@1.1.2(transitive)
- Removedwrite-pkg@2.1.0(transitive)
Updatedexeca@^0.7.0
Updatedwrite-pkg@^3.1.0