Commit 0a725d7
committed
Use bundle and release options from hookArgs
In case CLI is used as a library, the `$options` is not populated with correct values. So the `--release` that would normally be passed to command-line, is not set and the `$options.release` is always false.
Same is valid for the `bundle` flag.
Instead of using the flags from `$options` use them from the hookArgs. The prepare method has `appFilesUpdaterOptions`, which contain the information for bundle and release options. Use it instead and for backwards compatibility use the `$options`.1 parent 59edd19 commit 0a725d7
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
0 commit comments