@capawesome/cli 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/commands/apps/bundles/create.js +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.0.1](https://github.com/capawesome-team/cli/compare/v1.0.0...v1.0.1) (2024-11-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **apps:** `--ios-min` option was ignored ([d2de664](https://github.com/capawesome-team/cli/commit/d2de66481f7b54e44fc52eac6d1c868e82499160))
|
|
11
|
+
* **apps:** `--rollout` option was ignored ([5f1b2d8](https://github.com/capawesome-team/cli/commit/5f1b2d85a77d6a99e123dc690d947a740e864d6e))
|
|
12
|
+
|
|
5
13
|
## [1.0.0](https://github.com/capawesome-team/cli/compare/v0.0.17...v1.0.0) (2024-11-01)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -98,7 +98,7 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
98
98
|
let iosMin = ctx.args.iosMin;
|
|
99
99
|
let path = ctx.args.path;
|
|
100
100
|
let privateKey = ctx.args.privateKey;
|
|
101
|
-
let
|
|
101
|
+
let rolloutAsString = ctx.args.rollout;
|
|
102
102
|
let url = ctx.args.url;
|
|
103
103
|
// Validate the expiration days
|
|
104
104
|
let expiresAt;
|
|
@@ -112,6 +112,16 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
112
112
|
expiresAtDate.setDate(expiresAtDate.getDate() + expiresInDaysAsNumber);
|
|
113
113
|
expiresAt = expiresAtDate.toISOString();
|
|
114
114
|
}
|
|
115
|
+
// Validate the rollout percentage
|
|
116
|
+
let rolloutPercentage = 1;
|
|
117
|
+
if (rolloutAsString) {
|
|
118
|
+
const rolloutAsNumber = parseFloat(rolloutAsString);
|
|
119
|
+
if (isNaN(rolloutAsNumber) || rolloutAsNumber < 0 || rolloutAsNumber > 1) {
|
|
120
|
+
consola_1.default.error('Rollout percentage must be a number between 0 and 1.');
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
rolloutPercentage = rolloutAsNumber;
|
|
124
|
+
}
|
|
115
125
|
if (!path && !url) {
|
|
116
126
|
path = yield (0, prompt_1.prompt)('Enter the path to the app bundle:', {
|
|
117
127
|
type: 'text',
|
|
@@ -195,7 +205,8 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
195
205
|
maxAndroidAppVersionCode: androidMax,
|
|
196
206
|
maxIosAppVersionCode: iosMax,
|
|
197
207
|
minAndroidAppVersionCode: androidMin,
|
|
198
|
-
minIosAppVersionCode:
|
|
208
|
+
minIosAppVersionCode: iosMin,
|
|
209
|
+
rolloutPercentage,
|
|
199
210
|
});
|
|
200
211
|
appBundleId = response.id;
|
|
201
212
|
if (path) {
|