Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can start script have higher precedence than main? #22

Closed
jfirebaugh opened this issue Jul 24, 2014 · 2 comments
Closed

can start script have higher precedence than main? #22

jfirebaugh opened this issue Jul 24, 2014 · 2 comments

Comments

@jfirebaugh
Copy link

A common scenario for me is to have a module with both a "main" file and a "start" script. The main file is for consumption by external modules and doesn't listen on a port at all. The start script does listen, and typically runs a server for in-browser tests, manual debugging, or examples. The current behavior of "main" having precedence over "start" doesn't work in this scenario, so I'm wondering if it can be reversed, or if there are scenarios where the current precedence makes more sense.

@typicode
Copy link
Owner

In next version, it won't be that opinionated. Though you can force start by adding a custom command when linking like this:

$ katon link 'npm start'

@typicode
Copy link
Owner

typicode commented Aug 5, 2014

Hey, just released v0.5.0 which introduces many changes.
There's no more default behavior, which should make things more predictable.

You can migrate existing servers by using katon migrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants