eoas 3.2.1-beta1 → 3.2.2
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/THIRD_PARTY_NOTICES +31 -0
- package/dist/commands/publish.js +3 -3
- package/dist/commands/rollback.js +2 -3
- package/dist/lib/expoConfig.d.ts +1 -1
- package/dist/lib/expoConfig.js +1 -1
- package/dist/lib/log.js +1 -1
- package/dist/lib/prompts.js +1 -1
- package/dist/lib/repo.js +1 -1
- package/dist/lib/runtimeVersion.d.ts +2 -1
- package/dist/lib/workflow.d.ts +8 -1
- package/dist/lib/workflow.js +17 -8
- package/package.json +3 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
The following files are copied, in whole or in part, from eas-cli v16.3.1
|
|
2
|
+
(https://github.com/expo/eas-cli/tree/v16.3.1), licensed under the MIT License:
|
|
3
|
+
|
|
4
|
+
src/lib/assets.ts
|
|
5
|
+
src/lib/expoConfig.ts
|
|
6
|
+
src/lib/log.ts
|
|
7
|
+
src/lib/prompts.ts
|
|
8
|
+
src/lib/repo.ts
|
|
9
|
+
src/lib/vcs/
|
|
10
|
+
|
|
11
|
+
The MIT License (MIT)
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2020-present 650 Industries, Inc. (aka Expo)
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
package/dist/commands/publish.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
4
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
6
5
|
const core_1 = require("@oclif/core");
|
|
7
6
|
const crypto_1 = require("crypto");
|
|
@@ -170,7 +169,7 @@ class Publish extends core_1.Command {
|
|
|
170
169
|
runtimeVersion: (await (0, runtimeVersion_1.resolveRuntimeVersionAsync)({
|
|
171
170
|
exp: config,
|
|
172
171
|
platform: 'ios',
|
|
173
|
-
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir,
|
|
172
|
+
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir, workflow_1.Platform.IOS, vcsClient),
|
|
174
173
|
projectDir,
|
|
175
174
|
env: {
|
|
176
175
|
...process.env,
|
|
@@ -189,7 +188,7 @@ class Publish extends core_1.Command {
|
|
|
189
188
|
runtimeVersion: (await (0, runtimeVersion_1.resolveRuntimeVersionAsync)({
|
|
190
189
|
exp: config,
|
|
191
190
|
platform: 'android',
|
|
192
|
-
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir,
|
|
191
|
+
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir, workflow_1.Platform.ANDROID, vcsClient),
|
|
193
192
|
projectDir,
|
|
194
193
|
env: {
|
|
195
194
|
...process.env,
|
|
@@ -335,6 +334,7 @@ class Publish extends core_1.Command {
|
|
|
335
334
|
return {
|
|
336
335
|
method: 'PUT',
|
|
337
336
|
headers: {
|
|
337
|
+
...(itm.headers ?? {}),
|
|
338
338
|
...formData.getHeaders(),
|
|
339
339
|
...(0, auth_1.getAuthHeaders)(credentials),
|
|
340
340
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
6
5
|
const auth_1 = require("../lib/auth");
|
|
7
6
|
const expoConfig_1 = require("../lib/expoConfig");
|
|
@@ -97,7 +96,7 @@ class Publish extends core_1.Command {
|
|
|
97
96
|
runtimeVersion: (await (0, runtimeVersion_1.resolveRuntimeVersionAsync)({
|
|
98
97
|
exp: privateConfig,
|
|
99
98
|
platform: 'ios',
|
|
100
|
-
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir,
|
|
99
|
+
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir, workflow_1.Platform.IOS, vcsClient),
|
|
101
100
|
projectDir,
|
|
102
101
|
env: process.env,
|
|
103
102
|
}))?.runtimeVersion,
|
|
@@ -111,7 +110,7 @@ class Publish extends core_1.Command {
|
|
|
111
110
|
runtimeVersion: (await (0, runtimeVersion_1.resolveRuntimeVersionAsync)({
|
|
112
111
|
exp: privateConfig,
|
|
113
112
|
platform: 'android',
|
|
114
|
-
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir,
|
|
113
|
+
workflow: await (0, workflow_1.resolveWorkflowAsync)(projectDir, workflow_1.Platform.ANDROID, vcsClient),
|
|
115
114
|
projectDir,
|
|
116
115
|
env: process.env,
|
|
117
116
|
}))?.runtimeVersion,
|
package/dist/lib/expoConfig.d.ts
CHANGED
package/dist/lib/expoConfig.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveServerUrl = exports.publicServerUrl = exports.unwrapValue = exports.createOrModifyExpoConfigAsync = exports.requireExpoAppId = exports.getExpoAppId = exports.getExpoConfigUpdateUrl = exports.getPublicExpoConfigAsync = exports.isUsingStaticExpoConfig = exports.ensureExpoConfigExists = exports.getPrivateExpoConfigAsync = exports.RequestedPlatform = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
// This file is copied from eas-cli
|
|
5
|
+
// This file is copied from eas-cli v16.3.1 (MIT, https://github.com/expo/eas-cli/tree/v16.3.1) to ensure consistent user experience across the CLI.
|
|
6
6
|
const config_1 = require("@expo/config");
|
|
7
7
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
package/dist/lib/log.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.learnMore = exports.link = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
// Rendering for every command's output, drawn with the @clack/prompts
|
|
6
6
|
// primitives so the whole CLI shares one visual identity (gutter, symbols,
|
|
7
|
-
// notes). The static API is kept from the
|
|
7
|
+
// notes). The static API is kept from the eas-cli v16.3.1 logger (MIT) so call
|
|
8
8
|
// sites did not have to change.
|
|
9
9
|
const clack = tslib_1.__importStar(require("@clack/prompts"));
|
|
10
10
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
package/dist/lib/prompts.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pressAnyKeyToContinueAsync = exports.confirmStep = exports.yesNoStep = exports.selectStep = exports.textStep = exports.BACK_INPUT = exports.BACK = exports.toggleConfirmAsync = exports.selectAsync = exports.confirmAsync = exports.promptAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
// This file is copied from eas-cli
|
|
5
|
+
// This file is copied from eas-cli v16.3.1 (MIT, https://github.com/expo/eas-cli/tree/v16.3.1) to ensure consistent user experience across the CLI.
|
|
6
6
|
const clack = tslib_1.__importStar(require("@clack/prompts"));
|
|
7
7
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
8
8
|
const os_1 = require("os");
|
package/dist/lib/repo.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureRepoIsCleanAsync = exports.commitPromptAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
// This file is copied from eas-cli
|
|
5
|
+
// This file is copied from eas-cli v16.3.1 (MIT, https://github.com/expo/eas-cli/tree/v16.3.1) to ensure consistent user experience across the CLI.
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const log_1 = tslib_1.__importDefault(require("./log"));
|
|
8
8
|
const prompts_1 = require("./prompts");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config';
|
|
2
|
-
import { Env
|
|
2
|
+
import { Env } from './expoConfig';
|
|
3
|
+
import { Workflow } from './workflow';
|
|
3
4
|
export declare class ExpoUpdatesCLIModuleNotFoundError extends Error {
|
|
4
5
|
}
|
|
5
6
|
export declare class ExpoUpdatesCLIInvalidCommandError extends Error {
|
package/dist/lib/workflow.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { Platform, Workflow } from '@expo/eas-build-job';
|
|
2
1
|
import { Client } from './vcs/vcs';
|
|
2
|
+
export declare enum Platform {
|
|
3
|
+
ANDROID = "android",
|
|
4
|
+
IOS = "ios"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Workflow {
|
|
7
|
+
GENERIC = "generic",
|
|
8
|
+
MANAGED = "managed"
|
|
9
|
+
}
|
|
3
10
|
export declare function resolveWorkflowAsync(projectDir: string, platform: Platform, vcsClient: Client): Promise<Workflow>;
|
|
4
11
|
export declare function resolveWorkflowPerPlatformAsync(projectDir: string, vcsClient: Client): Promise<Record<Platform, Workflow>>;
|
package/dist/lib/workflow.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveWorkflowPerPlatformAsync = exports.resolveWorkflowAsync = void 0;
|
|
3
|
+
exports.resolveWorkflowPerPlatformAsync = exports.resolveWorkflowAsync = exports.Workflow = exports.Platform = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
|
-
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
7
6
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
7
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
var Platform;
|
|
9
|
+
(function (Platform) {
|
|
10
|
+
Platform["ANDROID"] = "android";
|
|
11
|
+
Platform["IOS"] = "ios";
|
|
12
|
+
})(Platform || (exports.Platform = Platform = {}));
|
|
13
|
+
var Workflow;
|
|
14
|
+
(function (Workflow) {
|
|
15
|
+
Workflow["GENERIC"] = "generic";
|
|
16
|
+
Workflow["MANAGED"] = "managed";
|
|
17
|
+
})(Workflow || (exports.Workflow = Workflow = {}));
|
|
9
18
|
async function resolveWorkflowAsync(projectDir, platform, vcsClient) {
|
|
10
19
|
let platformWorkflowMarkers;
|
|
11
20
|
try {
|
|
12
21
|
platformWorkflowMarkers =
|
|
13
|
-
platform ===
|
|
22
|
+
platform === Platform.ANDROID
|
|
14
23
|
? [
|
|
15
24
|
path_1.default.join(projectDir, 'android/app/build.gradle'),
|
|
16
25
|
await config_plugins_1.AndroidConfig.Paths.getAndroidManifestAsync(projectDir),
|
|
@@ -18,22 +27,22 @@ async function resolveWorkflowAsync(projectDir, platform, vcsClient) {
|
|
|
18
27
|
: [config_plugins_1.IOSConfig.Paths.getPBXProjectPath(projectDir)];
|
|
19
28
|
}
|
|
20
29
|
catch {
|
|
21
|
-
return
|
|
30
|
+
return Workflow.MANAGED;
|
|
22
31
|
}
|
|
23
32
|
const vcsRootPath = path_1.default.normalize(await vcsClient.getRootPathAsync());
|
|
24
33
|
for (const marker of platformWorkflowMarkers) {
|
|
25
34
|
if ((await fs_extra_1.default.pathExists(marker)) &&
|
|
26
35
|
!(await vcsClient.isFileIgnoredAsync(path_1.default.relative(vcsRootPath, marker)))) {
|
|
27
|
-
return
|
|
36
|
+
return Workflow.GENERIC;
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
|
-
return
|
|
39
|
+
return Workflow.MANAGED;
|
|
31
40
|
}
|
|
32
41
|
exports.resolveWorkflowAsync = resolveWorkflowAsync;
|
|
33
42
|
async function resolveWorkflowPerPlatformAsync(projectDir, vcsClient) {
|
|
34
43
|
const [android, ios] = await Promise.all([
|
|
35
|
-
resolveWorkflowAsync(projectDir,
|
|
36
|
-
resolveWorkflowAsync(projectDir,
|
|
44
|
+
resolveWorkflowAsync(projectDir, Platform.ANDROID, vcsClient),
|
|
45
|
+
resolveWorkflowAsync(projectDir, Platform.IOS, vcsClient),
|
|
37
46
|
]);
|
|
38
47
|
return { android, ios };
|
|
39
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eoas",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.json",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@expo/code-signing-certificates": "^0.0.5",
|
|
31
31
|
"@expo/config": "10.0.11",
|
|
32
32
|
"@expo/config-plugins": "9.0.12",
|
|
33
|
-
"@expo/eas-build-job": "1.0.165",
|
|
34
33
|
"@expo/fingerprint": "^0.11.7",
|
|
35
34
|
"@expo/package-manager": "1.7.0",
|
|
36
35
|
"@expo/spawn-async": "1.7.2",
|
|
@@ -99,6 +98,7 @@
|
|
|
99
98
|
},
|
|
100
99
|
"files": [
|
|
101
100
|
"/bin",
|
|
102
|
-
"/dist"
|
|
101
|
+
"/dist",
|
|
102
|
+
"/THIRD_PARTY_NOTICES"
|
|
103
103
|
]
|
|
104
104
|
}
|