Comparing version 0.1.2 to 1.0.0
{ | ||
"name": "rins", | ||
"version": "0.1.2", | ||
"version": "1.0.0", | ||
"description": "Run npm scripts interactively", | ||
@@ -20,2 +20,3 @@ "bin": "./src/index.js", | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"find-package-json": "^1.2.0", | ||
@@ -22,0 +23,0 @@ "inquirer": "^6.3.1" |
#!/usr/bin/env node | ||
const finder = require('find-package-json'); | ||
const inquirer = require('inquirer'); | ||
const chalk = require('chalk'); | ||
const { spawn } = require('child_process'); | ||
@@ -26,5 +27,5 @@ | ||
...Object.entries(scripts) | ||
.map(([name, command]) => ({ | ||
name: `${name} - ${command}`, | ||
value: `run ${name}` | ||
.map(([value, command]) => ({ | ||
name: `${value} ${chalk.gray(command)}`, | ||
value | ||
})), | ||
@@ -40,3 +41,3 @@ { | ||
if (script) { | ||
const proc = spawn('npm', script.split(' '), { | ||
const proc = spawn('npm', script.split(' ').shift('run'), { | ||
stdio: 'inherit' | ||
@@ -43,0 +44,0 @@ }); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1946
1
3
41
+ Addedchalk@^2.4.2