eas-cli 22.6.0 → 23.1.0
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/README.md +154 -144
- package/build/commandUtils/new/commands.d.ts +16 -1
- package/build/commandUtils/new/commands.js +59 -20
- package/build/commandUtils/new/projectFiles.d.ts +2 -1
- package/build/commandUtils/new/projectFiles.js +24 -1
- package/build/commandUtils/new/sdkVersion.d.ts +17 -0
- package/build/commandUtils/new/sdkVersion.js +138 -0
- package/build/commands/project/new.d.ts +1 -0
- package/build/commands/project/new.js +13 -2
- package/build/commands/simulator/index.js +1 -1
- package/build/commands/simulator/list.js +1 -1
- package/build/simulator/utils.js +1 -1
- package/build/worker/upload.d.ts +14 -1
- package/build/worker/upload.js +81 -17
- package/oclif.manifest.json +394 -387
- package/package.json +9 -10
- package/build/onboarding/git.d.ts +0 -16
- package/build/onboarding/git.js +0 -88
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "EAS command line tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@expo/code-signing-certificates": "0.0.5",
|
|
49
49
|
"@expo/config": "55.0.10",
|
|
50
50
|
"@expo/config-plugins": "55.0.7",
|
|
51
|
-
"@expo/eas-build-job": "
|
|
52
|
-
"@expo/eas-json": "
|
|
51
|
+
"@expo/eas-build-job": "23.1.0",
|
|
52
|
+
"@expo/eas-json": "23.1.0",
|
|
53
53
|
"@expo/env": "^1.0.0",
|
|
54
54
|
"@expo/json-file": "8.3.3",
|
|
55
|
-
"@expo/logger": "
|
|
55
|
+
"@expo/logger": "23.1.0",
|
|
56
56
|
"@expo/multipart-body-parser": "2.0.0",
|
|
57
57
|
"@expo/osascript": "2.1.4",
|
|
58
58
|
"@expo/package-manager": "1.9.10",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@expo/results": "1.0.0",
|
|
65
65
|
"@expo/rudder-sdk-node": "1.1.1",
|
|
66
66
|
"@expo/spawn-async": "1.7.2",
|
|
67
|
-
"@expo/steps": "
|
|
67
|
+
"@expo/steps": "23.1.0",
|
|
68
68
|
"@expo/timeago.js": "1.0.0",
|
|
69
69
|
"@oclif/core": "^4.8.3",
|
|
70
70
|
"@oclif/plugin-autocomplete": "^3.2.40",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@sentry/node": "7.77.0",
|
|
73
73
|
"@urql/core": "4.0.11",
|
|
74
74
|
"@urql/exchange-retry": "1.2.0",
|
|
75
|
-
"agent-cli-detector": "0.1.
|
|
75
|
+
"agent-cli-detector": "0.1.7",
|
|
76
76
|
"ajv": "8.11.0",
|
|
77
77
|
"ajv-formats": "2.1.1",
|
|
78
78
|
"better-opn": "3.0.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"log-symbols": "4.1.0",
|
|
105
105
|
"mime": "3.0.0",
|
|
106
106
|
"minimatch": "5.1.2",
|
|
107
|
-
"minizlib": "3.0
|
|
107
|
+
"minizlib": "3.1.0",
|
|
108
108
|
"nanoid": "3.3.8",
|
|
109
109
|
"node-fetch": "2.6.7",
|
|
110
110
|
"node-forge": "1.4.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"tslib": "2.6.2",
|
|
131
131
|
"turndown": "7.1.2",
|
|
132
132
|
"untildify": "4.0.0",
|
|
133
|
-
"uuid": "
|
|
133
|
+
"uuid": "11.1.1",
|
|
134
134
|
"wrap-ansi": "7.0.0",
|
|
135
135
|
"yaml": "2.6.0",
|
|
136
136
|
"zod": "^4.1.3"
|
|
@@ -159,7 +159,6 @@
|
|
|
159
159
|
"@types/tar": "6.1.10",
|
|
160
160
|
"@types/tar-stream": "3.1.3",
|
|
161
161
|
"@types/tough-cookie": "4.0.2",
|
|
162
|
-
"@types/uuid": "9.0.7",
|
|
163
162
|
"@types/wrap-ansi": "3.0.0",
|
|
164
163
|
"axios": "1.18.1",
|
|
165
164
|
"eslint-plugin-graphql": "4.0.0",
|
|
@@ -266,5 +265,5 @@
|
|
|
266
265
|
"engines": {
|
|
267
266
|
"node": ">=20.0.0"
|
|
268
267
|
},
|
|
269
|
-
"gitHead": "
|
|
268
|
+
"gitHead": "0658d58efdbf614f6920e3b4142223ac198bc003"
|
|
270
269
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function runGitCloneAsync({ targetProjectDir, githubRepositoryName, githubUsername, cloneMethod, showOutput, }: {
|
|
2
|
-
githubUsername: string;
|
|
3
|
-
githubRepositoryName: string;
|
|
4
|
-
targetProjectDir: string;
|
|
5
|
-
cloneMethod: 'ssh' | 'https';
|
|
6
|
-
showOutput?: boolean;
|
|
7
|
-
}): Promise<{
|
|
8
|
-
targetProjectDir: string;
|
|
9
|
-
}>;
|
|
10
|
-
export declare function runGitPushAsync({ targetProjectDir, }: {
|
|
11
|
-
targetProjectDir: string;
|
|
12
|
-
}): Promise<void>;
|
|
13
|
-
export declare function canAccessRepositoryUsingSshAsync({ githubUsername, githubRepositoryName, }: {
|
|
14
|
-
githubUsername: string;
|
|
15
|
-
githubRepositoryName: string;
|
|
16
|
-
}): Promise<boolean>;
|
package/build/onboarding/git.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runGitCloneAsync = runGitCloneAsync;
|
|
4
|
-
exports.runGitPushAsync = runGitPushAsync;
|
|
5
|
-
exports.canAccessRepositoryUsingSshAsync = canAccessRepositoryUsingSshAsync;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
8
|
-
const runCommand_1 = require("./runCommand");
|
|
9
|
-
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
10
|
-
const prompts_1 = require("../prompts");
|
|
11
|
-
async function runGitCloneAsync({ targetProjectDir, githubRepositoryName, githubUsername, cloneMethod, showOutput = true, }) {
|
|
12
|
-
const url = cloneMethod === 'ssh'
|
|
13
|
-
? `git@github.com:${githubUsername}/${githubRepositoryName}.git`
|
|
14
|
-
: `https://github.com/${githubUsername}/${githubRepositoryName}.git`;
|
|
15
|
-
try {
|
|
16
|
-
await (0, runCommand_1.runCommandAsync)({
|
|
17
|
-
command: 'git',
|
|
18
|
-
args: ['clone', url, targetProjectDir],
|
|
19
|
-
shouldPrintStderrLineAsStdout: line => {
|
|
20
|
-
return line.includes('Cloning into');
|
|
21
|
-
},
|
|
22
|
-
showSpinner: false,
|
|
23
|
-
showOutput,
|
|
24
|
-
});
|
|
25
|
-
return { targetProjectDir };
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
if (error.stderr.includes('already exists')) {
|
|
29
|
-
log_1.default.warn(`Directory ${targetProjectDir} already exists.`);
|
|
30
|
-
const shouldContinue = await (0, prompts_1.confirmAsync)({
|
|
31
|
-
message: 'Do you want to clone your project to some other destination?',
|
|
32
|
-
});
|
|
33
|
-
if (!shouldContinue) {
|
|
34
|
-
throw new Error('Directory already exists. Aborting...');
|
|
35
|
-
}
|
|
36
|
-
const { newTargetProjectDir } = await (0, prompts_1.promptAsync)({
|
|
37
|
-
type: 'text',
|
|
38
|
-
name: 'newTargetProjectDir',
|
|
39
|
-
message: 'New target directory path:',
|
|
40
|
-
validate: (input) => input !== '',
|
|
41
|
-
});
|
|
42
|
-
return await runGitCloneAsync({
|
|
43
|
-
githubRepositoryName,
|
|
44
|
-
githubUsername,
|
|
45
|
-
targetProjectDir: newTargetProjectDir,
|
|
46
|
-
cloneMethod,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
else if (error.stderr.includes('Permission denied')) {
|
|
50
|
-
log_1.default.warn(`It seems like you do not have permission to clone the repository using ${cloneMethod}.`);
|
|
51
|
-
const newMethod = cloneMethod === 'ssh' ? 'https' : 'ssh';
|
|
52
|
-
const shouldContinue = await (0, prompts_1.confirmAsync)({
|
|
53
|
-
message: `Do you want to clone the repository using ${newMethod} instead?`,
|
|
54
|
-
});
|
|
55
|
-
if (!shouldContinue) {
|
|
56
|
-
throw new Error('Permission denied. Aborting...');
|
|
57
|
-
}
|
|
58
|
-
return await runGitCloneAsync({
|
|
59
|
-
githubRepositoryName,
|
|
60
|
-
githubUsername,
|
|
61
|
-
targetProjectDir,
|
|
62
|
-
cloneMethod: newMethod,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
throw error;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
async function runGitPushAsync({ targetProjectDir, }) {
|
|
71
|
-
await (0, runCommand_1.runCommandAsync)({
|
|
72
|
-
command: 'git',
|
|
73
|
-
args: ['push'],
|
|
74
|
-
cwd: targetProjectDir,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
async function canAccessRepositoryUsingSshAsync({ githubUsername, githubRepositoryName, }) {
|
|
78
|
-
try {
|
|
79
|
-
await (0, spawn_async_1.default)('git', [
|
|
80
|
-
'ls-remote',
|
|
81
|
-
`git@github.com:${githubUsername}/${githubRepositoryName}.git`,
|
|
82
|
-
]);
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
catch {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
}
|