-
-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Labels
Description
From @enchev on June 9, 2016 14:54
From @rosen-vladimirov on March 7, 2016 7:27
In case the application has dependency on nativescript-unit-test-runner
, calling tns build <platform> --release
will include the unit-test runner in the prepared package. It is not expected to have it there in release build.
Some options to resolve the issue:
- Implement special logic in CLI to exclude the
nativescript-unit-test-runner
when in release build. The problem here is that if the same issue occurs with other modules, we'll have to hard-code them in CLI as well. - Install
nativescript-unit-test-runner
as devDependency and add logic in it to be copied to<platforms>
directory onafter-prepare
. This way the plugin will have the logic when to be copied to the project and when not. The same approach can be used for other packages.
Copied from original issue: #1572
Copied from original issue: NativeScript/nativescript-unit-test-runner#11