if no file is specified use package.json's main property #14

Closed
dylang opened this Issue Mar 6, 2011 · 8 comments

Projects

None yet

4 participants

dylang commented Mar 6, 2011

A simple short for lazy developers - if no command line arguments and package.json exist then use the main property.

EDIT: was use index.js

visnup commented Mar 18, 2011

or check for a package.json file in the directory and use it's main entry.

dylang commented Mar 19, 2011

I like that even better. Updating description...

Owner
remy commented Apr 23, 2011

On it.

@remy remy closed this in 88269ba Apr 23, 2011
@dylang dylang reopened this Apr 24, 2011
Owner
remy commented May 1, 2011

Why reopened? This change was applied in the last change to nodemon and released to npm...

dylang commented May 2, 2011

i reopened because i didn't see the change in the changelist associated with this but i must have done something wrong because my comment wasn't included and the feature works now.

thanks a ton for adding it!

@dylang dylang closed this May 2, 2011
Owner
remy commented May 2, 2011

The change was here if you're interested: 88269ba#L1R129

visnup commented May 25, 2011

<3 <3 <3 <3

this doesn't work for me, main is not intended to start the app, it would be nicer if we looked for a npm start (ie. scripts.start in package.json), and run that command as using npm --exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment