ava-init
Advanced tools
Comparing version 0.1.5 to 0.1.6
'use strict'; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var childProcess = require('child_process'); | ||
var spawn = require('cross-spawn'); | ||
var argv = require('the-argv'); | ||
@@ -53,3 +53,4 @@ var readPkgUp = require('read-pkg-up'); | ||
var child = childProcess.spawn('npm', ['install', '--save-dev', 'ava'], { | ||
// TODO: Switch to https://github.com/sindresorhus/execa when we eventually target Node.js >=4 | ||
var child = spawn('npm', ['install', '--save-dev', 'ava'], { | ||
cwd: path.dirname(pkgPath), | ||
@@ -56,0 +57,0 @@ stdio: 'inherit' |
{ | ||
"name": "ava-init", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Add AVA to your project", | ||
@@ -36,2 +36,3 @@ "license": "MIT", | ||
"arr-exclude": "^1.0.0", | ||
"cross-spawn": "^4.0.0", | ||
"pinkie-promise": "^2.0.0", | ||
@@ -38,0 +39,0 @@ "read-pkg-up": "^1.0.1", |
@@ -1,4 +0,4 @@ | ||
# ava-init [![Build Status](https://travis-ci.org/avajs/ava-init.svg?branch=master)](https://travis-ci.org/avajs/ava-init) | ||
# 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) | ||
> Add [AVA](http://ava.li) to your project | ||
> Add [AVA](https://ava.li) to your project | ||
@@ -16,5 +16,5 @@ | ||
```js | ||
var avaInit = require('ava-init'); | ||
const avaInit = require('ava-init'); | ||
avaInit().then(function () { | ||
avaInit().then(() => { | ||
console.log('done'); | ||
@@ -29,3 +29,3 @@ }); | ||
Returns a promise. | ||
Returns a `Promise`. | ||
@@ -36,3 +36,3 @@ #### options | ||
Type: `string` | ||
Type: `string`<br> | ||
Default: `'.'` | ||
@@ -44,6 +44,6 @@ | ||
Type: `array` | ||
Type: `Array`<br> | ||
Default: CLI arguments *(`process.argv.slice(2)`)* | ||
For instance, with the arguments `['--foo', '--bar']` the following will be put in package.json: | ||
For instance, with the arguments `['--foo', '--bar']`, the following will be put in package.json: | ||
@@ -67,2 +67,2 @@ ```json | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
4843
59
0
6
+ Addedcross-spawn@^4.0.0
+ Addedcross-spawn@4.0.2(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedyallist@2.1.2(transitive)