Skip to content

Conversation

@tzraikov
Copy link
Contributor

The following command doesn't exit: tns run ios --release --justlaunch because of the watch option that is enabled by default.


public runPlatform(platform: string): IFuture<void> {
return (() => {
if (this.$options.release) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be this.$options.justlaunch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct! Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request updated

@tzraikov tzraikov force-pushed the raikov/fix-release-watch branch from 523685a to 1ba387f Compare January 13, 2017 12:15
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I believe we should check where's the if that checks only watch option and does not check justlaunch. We definitely have such if somewhere that starts something and keeps our process alive.

@tzraikov
Copy link
Contributor Author

Yep, there are several ifs :)

@tzraikov tzraikov merged commit 561a9fa into release Jan 13, 2017
@tzraikov tzraikov deleted the raikov/fix-release-watch branch January 13, 2017 13:07
rosen-vladimirov added a commit that referenced this pull request Jan 24, 2017
* Fixed: tns update crashes with error message (#2421)

* Fixed: the app doesn't exit when using --release and --justlaunch (#2423)

* Fixed: debug exits unexpected when using --chrome and --watch options (#2426)

* Fixed: test command fails with exception (#2428)

* Fixed: getfile/putfile operate with global files (not local ones) (#2434)

* Remove --get-port flag (#2440)

* Deprecate support for Node.js 4 (#2444)

Deprecate support for Node.js `4.x.x` by adding message that users will see each time when they execute any command and their Node.js version is `4.x.x`.

* Updated CLI documentation after behavior changes in run command (#2435)

* Updated CLI documentation after behavior changes in run command

* Remove usages of  in help content.

* Update message for livesync deprecation as it should not contain concrete release version

* Add source-map dependency and it's types. Fix typescript error

Add source-map dependency and typings for it. Previously CLI used it from `lib/common/vendor` dir, but it has npm package for a long time and it's better to use it instead.
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

Successfully merging this pull request may close these issues.

3 participants