isaacs
e7e74d3769
run: output prettier json with --json and no arg
2014-05-02 21:17:05 -07:00
isaacs
ee321aedd6
run-script: Support --parseable and --json
...
Also, add a test
2014-05-02 17:36:47 -07:00
Evan Lucas
912254128d
list runnable scripts
...
Running `npm run` will now list available scripts in the top level
package.json. Fixes #4888
2014-05-01 20:45:54 -05:00
Carl Lange
e4e0019dff
added ENOTDIR check anywhere readJson is used
2013-01-18 14:06:41 -08:00
isaacs
00f781f6dc
Crash on readJson errors other than ENOENT
2012-12-27 17:25:53 -08:00
Martin Cooper
fc4dc8fa41
Friendly error message when command is omitted.
2012-11-08 15:26:51 -08:00
isaacs
99110432e5
Use read-package-json dep
2012-06-11 12:06:56 -07:00
isaacs
2568e40a39
Replace the log util with npmlog module
...
This feels so good. lib/utils/log.js is the worst kind of
glue code that keeps the npm project from being properly
abstracted into independent pieces.
In the process, also cleaned up a lot of unproductive logging,
and made the npm-debug.log generated on errors be a bit more
easy to read.
2012-06-06 14:56:35 -07:00
isaacs
4eb8f6b7bf
Avoid accidentally opening npm.js with WSH
2011-10-14 14:06:12 -07:00
isaacs
645cef3e77
Put .js on filenames
2011-08-06 13:51:59 -07:00
isaacs
157fbb1030
Use asyncMap from slide module
2011-07-20 02:48:53 -07:00
isaacs
af8e6156d6
Use chain function from slide module
2011-07-20 02:43:40 -07:00
isaacs
98b6a1070a
Abstract out graceful-fs
2011-07-20 01:58:33 -07:00
isaacs
b1f6cf2dda
run-script: cmd Not always [1]
2011-05-26 11:05:53 -07:00
isaacs
baf983ba19
Close #912 Trust scripts that are run explicitly
2011-05-22 17:55:44 -07:00
isaacs
ba23bd4d1d
completion for run-script commands
2011-03-21 15:56:13 -07:00
isaacs
8ed454029c
set the cmd
2011-03-21 15:56:09 -07:00
isaacs
03f782fe29
run-script v1.0
2011-03-21 15:56:05 -07:00
isaacs
81845b1b46
use graceful-fs
2011-03-21 15:55:48 -07:00
isaacs
2f87c6e84d
Closes GH-667 Allow running any 'script' command in a package.json folder
2011-03-03 11:19:54 -08:00
isaacs
43635cf9d2
Fix start/stop/test on link packages
2010-12-29 12:56:21 -08:00
isaacs
e8e5d91cf5
Properly pass through package version to scripts.
2010-12-23 12:09:49 -08:00
isaacs
04d74dc445
Support pre- and post- on npm (start|stop|test|restart)
2010-12-13 13:27:27 -08:00
isaacs
9b8c0cf87a
Fix #298 : Initial run-script command.
...
Completion isn't working quite right.
2010-12-13 00:15:49 -08:00