eas-cli 16.22.0 → 16.23.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/README.md +208 -207
- package/build/build/android/graphql.js +1 -2
- package/build/build/evaluateConfigWithEnvVarsAsync.js +5 -11
- package/build/build/ios/graphql.js +1 -2
- package/build/build/utils/environment.d.ts +1 -4
- package/build/build/utils/environment.js +7 -24
- package/build/commandUtils/EasCommand.d.ts +1 -2
- package/build/commandUtils/context/ContextField.d.ts +1 -2
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.d.ts +1 -2
- package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +3 -8
- package/build/commandUtils/flags.d.ts +3 -5
- package/build/commandUtils/flags.js +8 -22
- package/build/commandUtils/new/commands.d.ts +4 -0
- package/build/commandUtils/new/commands.js +61 -0
- package/build/commandUtils/new/configs.d.ts +25 -0
- package/build/commandUtils/new/configs.js +136 -0
- package/build/commandUtils/new/projectFiles.d.ts +8 -0
- package/build/commandUtils/new/projectFiles.js +167 -0
- package/build/commandUtils/new/templates/.eas/workflows/create-development-builds.yml +21 -0
- package/build/commandUtils/new/templates/.eas/workflows/deploy-to-production.yml +68 -0
- package/build/commandUtils/new/templates/.eas/workflows/publish-preview-update.yml +12 -0
- package/build/commandUtils/new/templates/readme-additions.md +36 -0
- package/build/commands/build/resign.d.ts +2 -3
- package/build/commands/deploy/index.d.ts +1 -2
- package/build/commands/env/create.d.ts +1 -2
- package/build/commands/env/create.js +12 -14
- package/build/commands/env/delete.d.ts +1 -2
- package/build/commands/env/delete.js +2 -6
- package/build/commands/env/exec.js +6 -7
- package/build/commands/env/get.d.ts +1 -2
- package/build/commands/env/get.js +4 -6
- package/build/commands/env/list.d.ts +1 -2
- package/build/commands/env/list.js +8 -6
- package/build/commands/env/pull.d.ts +1 -1
- package/build/commands/env/pull.js +8 -8
- package/build/commands/env/push.d.ts +6 -4
- package/build/commands/env/push.js +42 -30
- package/build/commands/env/update.d.ts +2 -3
- package/build/commands/env/update.js +7 -8
- package/build/commands/fingerprint/compare.d.ts +1 -2
- package/build/commands/fingerprint/compare.js +1 -1
- package/build/commands/fingerprint/generate.d.ts +1 -2
- package/build/commands/fingerprint/generate.js +1 -1
- package/build/commands/project/new.d.ts +21 -17
- package/build/commands/project/new.js +62 -291
- package/build/commands/update/configure.d.ts +1 -1
- package/build/commands/update/configure.js +1 -1
- package/build/commands/update/index.d.ts +1 -2
- package/build/commands/update/index.js +1 -1
- package/build/graphql/generated.d.ts +14 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +6 -6
- package/build/graphql/queries/EnvironmentVariablesQuery.js +15 -0
- package/build/onboarding/installDependencies.d.ts +4 -2
- package/build/onboarding/installDependencies.js +5 -7
- package/build/onboarding/runCommand.d.ts +2 -1
- package/build/onboarding/runCommand.js +24 -22
- package/build/utils/prompts.d.ts +8 -5
- package/build/utils/prompts.js +69 -10
- package/build/utils/variableUtils.d.ts +1 -3
- package/build/utils/variableUtils.js +1 -6
- package/build/worker/assets.d.ts +1 -2
- package/oclif.manifest.json +58 -114
- package/package.json +7 -6
|
@@ -6,39 +6,41 @@ const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
8
8
|
const ora_1 = require("../ora");
|
|
9
|
-
async function runCommandAsync({ cwd, args, command, shouldShowStderrLine, shouldPrintStderrLineAsStdout, showSpinner = true, }) {
|
|
9
|
+
async function runCommandAsync({ cwd, args, command, shouldShowStderrLine, shouldPrintStderrLineAsStdout, showSpinner = true, showOutput = true, }) {
|
|
10
10
|
log_1.default.log(`🏗️ Running ${chalk_1.default.bold(`${command} ${args.join(' ')}`)}...`);
|
|
11
11
|
let spinner;
|
|
12
12
|
if (showSpinner) {
|
|
13
13
|
spinner = (0, ora_1.ora)(`${chalk_1.default.bold(`${command} ${args.join(' ')}`)}`).start();
|
|
14
14
|
}
|
|
15
15
|
const spawnPromise = (0, spawn_async_1.default)(command, args, {
|
|
16
|
-
stdio: ['inherit', 'pipe', 'pipe'],
|
|
16
|
+
stdio: showOutput ? ['inherit', 'pipe', 'pipe'] : 'ignore',
|
|
17
17
|
cwd,
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
stdout.on('data', data => {
|
|
24
|
-
for (const line of data.toString().trim().split('\n')) {
|
|
25
|
-
log_1.default.log(`${chalk_1.default.gray(`[${command}]`)} ${line}`);
|
|
19
|
+
if (showOutput) {
|
|
20
|
+
const { child: { stdout, stderr }, } = spawnPromise;
|
|
21
|
+
if (!stdout || !stderr) {
|
|
22
|
+
throw new Error(`Failed to spawn ${command}`);
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (shouldShowStderrLine && !shouldShowStderrLine(line)) {
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
const log = `${chalk_1.default.gray(`[${command}]`)} ${line}`;
|
|
34
|
-
if (shouldPrintStderrLineAsStdout?.(line)) {
|
|
35
|
-
log_1.default.log(log);
|
|
24
|
+
stdout.on('data', data => {
|
|
25
|
+
for (const line of data.toString().trim().split('\n')) {
|
|
26
|
+
log_1.default.log(`${chalk_1.default.gray(`[${command}]`)} ${line}`);
|
|
36
27
|
}
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
});
|
|
29
|
+
stderr.on('data', data => {
|
|
30
|
+
for (const line of data.toString().trim().split('\n')) {
|
|
31
|
+
if (shouldShowStderrLine && !shouldShowStderrLine(line)) {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
const log = `${chalk_1.default.gray(`[${command}]`)} ${line}`;
|
|
35
|
+
if (shouldPrintStderrLineAsStdout?.(line)) {
|
|
36
|
+
log_1.default.log(log);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
log_1.default.warn(`${chalk_1.default.gray(`[${command}]`)} ${line}`);
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
42
44
|
try {
|
|
43
45
|
await spawnPromise;
|
|
44
46
|
}
|
package/build/utils/prompts.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { EnvironmentSecretType, EnvironmentVariableVisibility } from '../graphql/generated';
|
|
3
3
|
import { RequestedPlatform } from '../platform';
|
|
4
|
+
export declare function getProjectEnvironmentVariableEnvironmentsAsync(graphqlClient: ExpoGraphqlClient, projectId: string): Promise<string[]>;
|
|
4
5
|
export declare function promptVariableTypeAsync(nonInteractive: boolean, initialType?: EnvironmentSecretType): Promise<EnvironmentSecretType>;
|
|
5
6
|
export declare function parseVisibility(stringVisibility: 'plaintext' | 'sensitive' | 'secret'): EnvironmentVariableVisibility;
|
|
6
7
|
export declare function promptVariableVisibilityAsync(nonInteractive: boolean, selectedVisibility?: EnvironmentVariableVisibility | null): Promise<EnvironmentVariableVisibility>;
|
|
7
8
|
type EnvironmentPromptArgs = {
|
|
8
9
|
nonInteractive: boolean;
|
|
9
|
-
selectedEnvironments?:
|
|
10
|
-
|
|
10
|
+
selectedEnvironments?: string[];
|
|
11
|
+
graphqlClient?: ExpoGraphqlClient;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
canEnterCustomEnvironment?: boolean;
|
|
11
14
|
};
|
|
12
15
|
export declare function promptVariableEnvironmentAsync(input: EnvironmentPromptArgs & {
|
|
13
16
|
multiple: true;
|
|
14
|
-
}): Promise<
|
|
17
|
+
}): Promise<string[]>;
|
|
15
18
|
export declare function promptVariableEnvironmentAsync(input: EnvironmentPromptArgs & {
|
|
16
19
|
multiple?: false;
|
|
17
|
-
}): Promise<
|
|
20
|
+
}): Promise<string>;
|
|
18
21
|
export declare function promptVariableValueAsync({ nonInteractive, required, hidden, filePath, initial, }: {
|
|
19
22
|
nonInteractive: boolean;
|
|
20
23
|
required?: boolean;
|
package/build/utils/prompts.js
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.promptPlatformAsync = exports.promptVariableNameAsync = exports.promptVariableValueAsync = exports.promptVariableEnvironmentAsync = exports.promptVariableVisibilityAsync = exports.parseVisibility = exports.promptVariableTypeAsync = void 0;
|
|
3
|
+
exports.promptPlatformAsync = exports.promptVariableNameAsync = exports.promptVariableValueAsync = exports.promptVariableEnvironmentAsync = exports.promptVariableVisibilityAsync = exports.parseVisibility = exports.promptVariableTypeAsync = exports.getProjectEnvironmentVariableEnvironmentsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const environment_1 = require("../build/utils/environment");
|
|
7
7
|
const generated_1 = require("../graphql/generated");
|
|
8
|
+
const EnvironmentVariablesQuery_1 = require("../graphql/queries/EnvironmentVariablesQuery");
|
|
8
9
|
const platform_1 = require("../platform");
|
|
9
10
|
const prompts_1 = require("../prompts");
|
|
11
|
+
const DEFAULT_ENVIRONMENTS = Object.values(environment_1.DefaultEnvironment);
|
|
12
|
+
async function getProjectEnvironmentVariableEnvironmentsAsync(graphqlClient, projectId) {
|
|
13
|
+
try {
|
|
14
|
+
const environments = await EnvironmentVariablesQuery_1.EnvironmentVariablesQuery.environmentVariableEnvironmentsAsync(graphqlClient, projectId);
|
|
15
|
+
return environments;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
throw new Error('Failed to fetch available environments');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.getProjectEnvironmentVariableEnvironmentsAsync = getProjectEnvironmentVariableEnvironmentsAsync;
|
|
22
|
+
const CUSTOM_ENVIRONMENT_VALUE = '~~CUSTOM~~';
|
|
10
23
|
async function promptVariableTypeAsync(nonInteractive, initialType) {
|
|
11
24
|
if (nonInteractive) {
|
|
12
25
|
throw new Error('The `--type` flag must be set when running in `--non-interactive` mode.');
|
|
@@ -39,6 +52,23 @@ function parseVisibility(stringVisibility) {
|
|
|
39
52
|
}
|
|
40
53
|
}
|
|
41
54
|
exports.parseVisibility = parseVisibility;
|
|
55
|
+
async function promptCustomEnvironmentAsync() {
|
|
56
|
+
const { customEnvironment } = await (0, prompts_1.promptAsync)({
|
|
57
|
+
type: 'text',
|
|
58
|
+
name: 'customEnvironment',
|
|
59
|
+
message: 'Enter custom environment name:',
|
|
60
|
+
validate: (value) => {
|
|
61
|
+
if (!value || value.trim() === '') {
|
|
62
|
+
return 'Environment name cannot be empty';
|
|
63
|
+
}
|
|
64
|
+
if (!value.match(/^[a-zA-Z0-9_-]+$/)) {
|
|
65
|
+
return 'Environment name may only contain letters, numbers, underscores, and hyphens';
|
|
66
|
+
}
|
|
67
|
+
return true;
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
return customEnvironment;
|
|
71
|
+
}
|
|
42
72
|
async function promptVariableVisibilityAsync(nonInteractive, selectedVisibility) {
|
|
43
73
|
if (nonInteractive) {
|
|
44
74
|
throw new Error('The `--visibility` flag must be set when running in `--non-interactive` mode.');
|
|
@@ -62,26 +92,55 @@ async function promptVariableVisibilityAsync(nonInteractive, selectedVisibility)
|
|
|
62
92
|
]);
|
|
63
93
|
}
|
|
64
94
|
exports.promptVariableVisibilityAsync = promptVariableVisibilityAsync;
|
|
65
|
-
async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironments, multiple = false,
|
|
95
|
+
async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironments, multiple = false, canEnterCustomEnvironment = false, graphqlClient, projectId, }) {
|
|
66
96
|
if (nonInteractive) {
|
|
67
97
|
throw new Error('The `--environment` flag must be set when running in `--non-interactive` mode.');
|
|
68
98
|
}
|
|
99
|
+
let allEnvironments = DEFAULT_ENVIRONMENTS;
|
|
100
|
+
if (graphqlClient && projectId) {
|
|
101
|
+
const projectEnvironments = await getProjectEnvironmentVariableEnvironmentsAsync(graphqlClient, projectId);
|
|
102
|
+
allEnvironments = [...new Set([...DEFAULT_ENVIRONMENTS, ...projectEnvironments])];
|
|
103
|
+
}
|
|
69
104
|
if (!multiple) {
|
|
70
|
-
|
|
71
|
-
title: environment
|
|
105
|
+
const choices = allEnvironments.map(environment => ({
|
|
106
|
+
title: environment,
|
|
72
107
|
value: environment,
|
|
73
|
-
}))
|
|
108
|
+
}));
|
|
109
|
+
if (canEnterCustomEnvironment) {
|
|
110
|
+
choices.push({
|
|
111
|
+
title: 'Other (enter custom environment)',
|
|
112
|
+
value: CUSTOM_ENVIRONMENT_VALUE,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
const selectedEnvironment = await (0, prompts_1.selectAsync)('Select environment:', choices);
|
|
116
|
+
if (selectedEnvironment === CUSTOM_ENVIRONMENT_VALUE) {
|
|
117
|
+
return await promptCustomEnvironmentAsync();
|
|
118
|
+
}
|
|
119
|
+
return selectedEnvironment;
|
|
120
|
+
}
|
|
121
|
+
const choices = allEnvironments.map(environment => ({
|
|
122
|
+
title: environment,
|
|
123
|
+
value: environment,
|
|
124
|
+
selected: selectedEnvironments?.includes(environment),
|
|
125
|
+
}));
|
|
126
|
+
if (canEnterCustomEnvironment) {
|
|
127
|
+
choices.push({
|
|
128
|
+
title: 'Other (enter custom environment)',
|
|
129
|
+
value: CUSTOM_ENVIRONMENT_VALUE,
|
|
130
|
+
selected: false,
|
|
131
|
+
});
|
|
74
132
|
}
|
|
75
133
|
const { environments } = await (0, prompts_1.promptAsync)({
|
|
76
134
|
message: 'Select environment:',
|
|
77
135
|
name: 'environments',
|
|
78
136
|
type: 'multiselect',
|
|
79
|
-
choices
|
|
80
|
-
title: environment.toLocaleLowerCase(),
|
|
81
|
-
value: environment,
|
|
82
|
-
selected: selectedEnvironments?.includes(environment),
|
|
83
|
-
})),
|
|
137
|
+
choices,
|
|
84
138
|
});
|
|
139
|
+
if (environments?.includes(CUSTOM_ENVIRONMENT_VALUE)) {
|
|
140
|
+
const customEnvironment = await promptCustomEnvironmentAsync();
|
|
141
|
+
const filteredEnvironments = environments.filter((env) => env !== CUSTOM_ENVIRONMENT_VALUE);
|
|
142
|
+
return [...filteredEnvironments, customEnvironment];
|
|
143
|
+
}
|
|
85
144
|
return environments;
|
|
86
145
|
}
|
|
87
146
|
exports.promptVariableEnvironmentAsync = promptVariableEnvironmentAsync;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { EnvironmentVariableEnvironment } from '../build/utils/environment';
|
|
2
1
|
import { EnvironmentVariableFragment } from '../graphql/generated';
|
|
3
2
|
import { EnvironmentVariableWithFileContent } from '../graphql/queries/EnvironmentVariablesQuery';
|
|
4
|
-
export declare function isEnvironment(environment: string): environment is EnvironmentVariableEnvironment;
|
|
5
3
|
export declare function formatVariableName(variable: EnvironmentVariableFragment): string;
|
|
6
4
|
export declare function formatVariableValue(variable: EnvironmentVariableWithFileContent): string;
|
|
7
|
-
export declare function performForEnvironmentsAsync(environments:
|
|
5
|
+
export declare function performForEnvironmentsAsync(environments: string[] | null, fun: (environment: string | undefined) => Promise<any>): Promise<any[]>;
|
|
8
6
|
export declare function formatVariable(variable: EnvironmentVariableWithFileContent): string;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatVariable = exports.performForEnvironmentsAsync = exports.formatVariableValue = exports.formatVariableName =
|
|
3
|
+
exports.formatVariable = exports.performForEnvironmentsAsync = exports.formatVariableValue = exports.formatVariableName = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
|
|
6
6
|
const formatFields_1 = tslib_1.__importDefault(require("./formatFields"));
|
|
7
|
-
const environment_1 = require("../build/utils/environment");
|
|
8
7
|
const generated_1 = require("../graphql/generated");
|
|
9
|
-
function isEnvironment(environment) {
|
|
10
|
-
return Object.values(environment_1.EnvironmentVariableEnvironment).includes(environment);
|
|
11
|
-
}
|
|
12
|
-
exports.isEnvironment = isEnvironment;
|
|
13
8
|
function formatVariableName(variable) {
|
|
14
9
|
const name = variable.name;
|
|
15
10
|
const scope = variable.scope === generated_1.EnvironmentVariableScope.Project ? 'project' : 'shared';
|
package/build/worker/assets.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { GzipOptions } from 'minizlib';
|
|
3
|
-
import { EnvironmentVariableEnvironment } from '../build/utils/environment';
|
|
4
3
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
5
4
|
interface AssetMapOptions {
|
|
6
5
|
maxFileSize: number;
|
|
@@ -36,7 +35,7 @@ export interface CreateManifestResult {
|
|
|
36
35
|
interface CreateManifestParams {
|
|
37
36
|
projectId: string;
|
|
38
37
|
projectDir: string;
|
|
39
|
-
environment?:
|
|
38
|
+
environment?: string;
|
|
40
39
|
}
|
|
41
40
|
/** Creates a manifest configuration sent up for deployment */
|
|
42
41
|
export declare function createManifestAsync(params: CreateManifestParams, graphqlClient: ExpoGraphqlClient): Promise<CreateManifestResult>;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.
|
|
2
|
+
"version": "16.23.1",
|
|
3
3
|
"commands": {
|
|
4
4
|
"analytics": {
|
|
5
5
|
"id": "analytics",
|
|
@@ -2032,14 +2032,8 @@
|
|
|
2032
2032
|
"environment": {
|
|
2033
2033
|
"name": "environment",
|
|
2034
2034
|
"type": "option",
|
|
2035
|
-
"description": "Environment variable's environment",
|
|
2036
|
-
"
|
|
2037
|
-
"multiple": false,
|
|
2038
|
-
"options": [
|
|
2039
|
-
"development",
|
|
2040
|
-
"preview",
|
|
2041
|
-
"production"
|
|
2042
|
-
]
|
|
2035
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2036
|
+
"multiple": false
|
|
2043
2037
|
},
|
|
2044
2038
|
"json": {
|
|
2045
2039
|
"name": "json",
|
|
@@ -2304,14 +2298,8 @@
|
|
|
2304
2298
|
"environment": {
|
|
2305
2299
|
"name": "environment",
|
|
2306
2300
|
"type": "option",
|
|
2307
|
-
"description": "Environment variable's environment",
|
|
2308
|
-
"
|
|
2309
|
-
"multiple": true,
|
|
2310
|
-
"options": [
|
|
2311
|
-
"development",
|
|
2312
|
-
"preview",
|
|
2313
|
-
"production"
|
|
2314
|
-
]
|
|
2301
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2302
|
+
"multiple": true
|
|
2315
2303
|
},
|
|
2316
2304
|
"non-interactive": {
|
|
2317
2305
|
"name": "non-interactive",
|
|
@@ -2323,7 +2311,7 @@
|
|
|
2323
2311
|
"args": {
|
|
2324
2312
|
"environment": {
|
|
2325
2313
|
"name": "environment",
|
|
2326
|
-
"description": "Environment to create the variable in.
|
|
2314
|
+
"description": "Environment to create the variable in. Default environments are 'production', 'preview', and 'development'.",
|
|
2327
2315
|
"required": false
|
|
2328
2316
|
}
|
|
2329
2317
|
},
|
|
@@ -2352,13 +2340,7 @@
|
|
|
2352
2340
|
"name": "variable-environment",
|
|
2353
2341
|
"type": "option",
|
|
2354
2342
|
"description": "Current environment of the variable to delete",
|
|
2355
|
-
"
|
|
2356
|
-
"multiple": false,
|
|
2357
|
-
"options": [
|
|
2358
|
-
"development",
|
|
2359
|
-
"preview",
|
|
2360
|
-
"production"
|
|
2361
|
-
]
|
|
2343
|
+
"multiple": false
|
|
2362
2344
|
},
|
|
2363
2345
|
"scope": {
|
|
2364
2346
|
"name": "scope",
|
|
@@ -2382,7 +2364,7 @@
|
|
|
2382
2364
|
"args": {
|
|
2383
2365
|
"environment": {
|
|
2384
2366
|
"name": "environment",
|
|
2385
|
-
"description": "Current environment of the variable to delete.
|
|
2367
|
+
"description": "Current environment of the variable to delete. Default environments are 'production', 'preview', and 'development'.",
|
|
2386
2368
|
"required": false
|
|
2387
2369
|
}
|
|
2388
2370
|
},
|
|
@@ -2410,7 +2392,7 @@
|
|
|
2410
2392
|
"args": {
|
|
2411
2393
|
"environment": {
|
|
2412
2394
|
"name": "environment",
|
|
2413
|
-
"description": "Environment to execute the command in.
|
|
2395
|
+
"description": "Environment to execute the command in. Default environments are 'production', 'preview', and 'development'.",
|
|
2414
2396
|
"required": true
|
|
2415
2397
|
},
|
|
2416
2398
|
"bash_command": {
|
|
@@ -2443,13 +2425,7 @@
|
|
|
2443
2425
|
"name": "variable-environment",
|
|
2444
2426
|
"type": "option",
|
|
2445
2427
|
"description": "Current environment of the variable",
|
|
2446
|
-
"
|
|
2447
|
-
"multiple": false,
|
|
2448
|
-
"options": [
|
|
2449
|
-
"development",
|
|
2450
|
-
"preview",
|
|
2451
|
-
"production"
|
|
2452
|
-
]
|
|
2428
|
+
"multiple": false
|
|
2453
2429
|
},
|
|
2454
2430
|
"format": {
|
|
2455
2431
|
"name": "format",
|
|
@@ -2485,7 +2461,7 @@
|
|
|
2485
2461
|
"args": {
|
|
2486
2462
|
"environment": {
|
|
2487
2463
|
"name": "environment",
|
|
2488
|
-
"description": "Current environment of the variable.
|
|
2464
|
+
"description": "Current environment of the variable. Default environments are 'production', 'preview', and 'development'.",
|
|
2489
2465
|
"required": false
|
|
2490
2466
|
}
|
|
2491
2467
|
},
|
|
@@ -2518,14 +2494,8 @@
|
|
|
2518
2494
|
"environment": {
|
|
2519
2495
|
"name": "environment",
|
|
2520
2496
|
"type": "option",
|
|
2521
|
-
"description": "Environment variable's environment",
|
|
2522
|
-
"
|
|
2523
|
-
"multiple": true,
|
|
2524
|
-
"options": [
|
|
2525
|
-
"development",
|
|
2526
|
-
"preview",
|
|
2527
|
-
"production"
|
|
2528
|
-
]
|
|
2497
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2498
|
+
"multiple": true
|
|
2529
2499
|
},
|
|
2530
2500
|
"format": {
|
|
2531
2501
|
"name": "format",
|
|
@@ -2555,7 +2525,7 @@
|
|
|
2555
2525
|
"args": {
|
|
2556
2526
|
"environment": {
|
|
2557
2527
|
"name": "environment",
|
|
2558
|
-
"description": "Environment to list the variables from.
|
|
2528
|
+
"description": "Environment to list the variables from. Default environments are 'production', 'preview', and 'development'.",
|
|
2559
2529
|
"required": false
|
|
2560
2530
|
}
|
|
2561
2531
|
},
|
|
@@ -2582,14 +2552,8 @@
|
|
|
2582
2552
|
"environment": {
|
|
2583
2553
|
"name": "environment",
|
|
2584
2554
|
"type": "option",
|
|
2585
|
-
"description": "Environment variable's environment",
|
|
2586
|
-
"
|
|
2587
|
-
"multiple": false,
|
|
2588
|
-
"options": [
|
|
2589
|
-
"development",
|
|
2590
|
-
"preview",
|
|
2591
|
-
"production"
|
|
2592
|
-
]
|
|
2555
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2556
|
+
"multiple": false
|
|
2593
2557
|
},
|
|
2594
2558
|
"path": {
|
|
2595
2559
|
"name": "path",
|
|
@@ -2602,7 +2566,7 @@
|
|
|
2602
2566
|
"args": {
|
|
2603
2567
|
"environment": {
|
|
2604
2568
|
"name": "environment",
|
|
2605
|
-
"description": "Environment to pull variables from.
|
|
2569
|
+
"description": "Environment to pull variables from. Default environments are 'production', 'preview', and 'development'.",
|
|
2606
2570
|
"required": false
|
|
2607
2571
|
}
|
|
2608
2572
|
},
|
|
@@ -2624,14 +2588,8 @@
|
|
|
2624
2588
|
"environment": {
|
|
2625
2589
|
"name": "environment",
|
|
2626
2590
|
"type": "option",
|
|
2627
|
-
"description": "Environment variable's environment",
|
|
2628
|
-
"
|
|
2629
|
-
"multiple": true,
|
|
2630
|
-
"options": [
|
|
2631
|
-
"development",
|
|
2632
|
-
"preview",
|
|
2633
|
-
"production"
|
|
2634
|
-
]
|
|
2591
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2592
|
+
"multiple": true
|
|
2635
2593
|
},
|
|
2636
2594
|
"path": {
|
|
2637
2595
|
"name": "path",
|
|
@@ -2639,12 +2597,18 @@
|
|
|
2639
2597
|
"description": "Path to the input `.env` file",
|
|
2640
2598
|
"multiple": false,
|
|
2641
2599
|
"default": ".env.local"
|
|
2600
|
+
},
|
|
2601
|
+
"force": {
|
|
2602
|
+
"name": "force",
|
|
2603
|
+
"type": "boolean",
|
|
2604
|
+
"description": "Skip confirmation and automatically override existing variables",
|
|
2605
|
+
"allowNo": false
|
|
2642
2606
|
}
|
|
2643
2607
|
},
|
|
2644
2608
|
"args": {
|
|
2645
2609
|
"environment": {
|
|
2646
2610
|
"name": "environment",
|
|
2647
|
-
"description": "Environment to push variables to.
|
|
2611
|
+
"description": "Environment to push variables to. Default environments are 'production', 'preview', and 'development'.",
|
|
2648
2612
|
"required": false
|
|
2649
2613
|
}
|
|
2650
2614
|
},
|
|
@@ -2672,13 +2636,7 @@
|
|
|
2672
2636
|
"name": "variable-environment",
|
|
2673
2637
|
"type": "option",
|
|
2674
2638
|
"description": "Current environment of the variable to update",
|
|
2675
|
-
"
|
|
2676
|
-
"multiple": false,
|
|
2677
|
-
"options": [
|
|
2678
|
-
"development",
|
|
2679
|
-
"preview",
|
|
2680
|
-
"production"
|
|
2681
|
-
]
|
|
2639
|
+
"multiple": false
|
|
2682
2640
|
},
|
|
2683
2641
|
"name": {
|
|
2684
2642
|
"name": "name",
|
|
@@ -2730,14 +2688,8 @@
|
|
|
2730
2688
|
"environment": {
|
|
2731
2689
|
"name": "environment",
|
|
2732
2690
|
"type": "option",
|
|
2733
|
-
"description": "Environment variable's environment",
|
|
2734
|
-
"
|
|
2735
|
-
"multiple": true,
|
|
2736
|
-
"options": [
|
|
2737
|
-
"development",
|
|
2738
|
-
"preview",
|
|
2739
|
-
"production"
|
|
2740
|
-
]
|
|
2691
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2692
|
+
"multiple": true
|
|
2741
2693
|
},
|
|
2742
2694
|
"non-interactive": {
|
|
2743
2695
|
"name": "non-interactive",
|
|
@@ -2749,7 +2701,7 @@
|
|
|
2749
2701
|
"args": {
|
|
2750
2702
|
"environment": {
|
|
2751
2703
|
"name": "environment",
|
|
2752
|
-
"description": "Current environment of the variable to update.
|
|
2704
|
+
"description": "Current environment of the variable to update. Default environments are 'production', 'preview', and 'development'.",
|
|
2753
2705
|
"required": false
|
|
2754
2706
|
}
|
|
2755
2707
|
},
|
|
@@ -2806,13 +2758,7 @@
|
|
|
2806
2758
|
"name": "environment",
|
|
2807
2759
|
"type": "option",
|
|
2808
2760
|
"description": "If generating a fingerprint from the local directory, use the specified environment.",
|
|
2809
|
-
"
|
|
2810
|
-
"multiple": false,
|
|
2811
|
-
"options": [
|
|
2812
|
-
"development",
|
|
2813
|
-
"preview",
|
|
2814
|
-
"production"
|
|
2815
|
-
]
|
|
2761
|
+
"multiple": false
|
|
2816
2762
|
},
|
|
2817
2763
|
"json": {
|
|
2818
2764
|
"name": "json",
|
|
@@ -2879,14 +2825,8 @@
|
|
|
2879
2825
|
"environment": {
|
|
2880
2826
|
"name": "environment",
|
|
2881
2827
|
"type": "option",
|
|
2882
|
-
"description": "Environment variable's environment",
|
|
2883
|
-
"helpValue": "(development|preview|production)",
|
|
2828
|
+
"description": "Environment variable's environment, e.g. 'production', 'preview', 'development'",
|
|
2884
2829
|
"multiple": false,
|
|
2885
|
-
"options": [
|
|
2886
|
-
"development",
|
|
2887
|
-
"preview",
|
|
2888
|
-
"production"
|
|
2889
|
-
],
|
|
2890
2830
|
"exclusive": [
|
|
2891
2831
|
"build-profile"
|
|
2892
2832
|
]
|
|
@@ -3058,7 +2998,7 @@
|
|
|
3058
2998
|
},
|
|
3059
2999
|
"project:new": {
|
|
3060
3000
|
"id": "project:new",
|
|
3061
|
-
"description": "
|
|
3001
|
+
"description": "Create a new project configured with Expo Application Services (EAS)",
|
|
3062
3002
|
"strict": true,
|
|
3063
3003
|
"pluginName": "eas-cli",
|
|
3064
3004
|
"pluginAlias": "eas-cli",
|
|
@@ -3067,10 +3007,28 @@
|
|
|
3067
3007
|
"aliases": [
|
|
3068
3008
|
"new"
|
|
3069
3009
|
],
|
|
3070
|
-
"flags": {
|
|
3010
|
+
"flags": {
|
|
3011
|
+
"package-manager": {
|
|
3012
|
+
"name": "package-manager",
|
|
3013
|
+
"type": "option",
|
|
3014
|
+
"char": "p",
|
|
3015
|
+
"description": "Package manager to use for installing dependencies",
|
|
3016
|
+
"helpValue": "(bun|npm|pnpm|yarn)",
|
|
3017
|
+
"multiple": false,
|
|
3018
|
+
"options": [
|
|
3019
|
+
"bun",
|
|
3020
|
+
"npm",
|
|
3021
|
+
"pnpm",
|
|
3022
|
+
"yarn"
|
|
3023
|
+
],
|
|
3024
|
+
"default": "npm"
|
|
3025
|
+
}
|
|
3026
|
+
},
|
|
3071
3027
|
"args": {
|
|
3072
|
-
"
|
|
3073
|
-
"name": "
|
|
3028
|
+
"path": {
|
|
3029
|
+
"name": "path",
|
|
3030
|
+
"description": "Path to create the project (defaults to current directory)",
|
|
3031
|
+
"required": false
|
|
3074
3032
|
}
|
|
3075
3033
|
},
|
|
3076
3034
|
"contextDefinition": {
|
|
@@ -3324,16 +3282,9 @@
|
|
|
3324
3282
|
"environment": {
|
|
3325
3283
|
"name": "environment",
|
|
3326
3284
|
"type": "option",
|
|
3327
|
-
"description": "Environment to use for the server-side defined EAS environment variables during command execution.",
|
|
3285
|
+
"description": "Environment to use for the server-side defined EAS environment variables during command execution, e.g. \"production\", \"preview\", \"development\"",
|
|
3328
3286
|
"required": false,
|
|
3329
|
-
"
|
|
3330
|
-
"multiple": false,
|
|
3331
|
-
"options": [
|
|
3332
|
-
"development",
|
|
3333
|
-
"preview",
|
|
3334
|
-
"production"
|
|
3335
|
-
],
|
|
3336
|
-
"default": null
|
|
3287
|
+
"multiple": false
|
|
3337
3288
|
},
|
|
3338
3289
|
"non-interactive": {
|
|
3339
3290
|
"name": "non-interactive",
|
|
@@ -3528,16 +3479,9 @@
|
|
|
3528
3479
|
"environment": {
|
|
3529
3480
|
"name": "environment",
|
|
3530
3481
|
"type": "option",
|
|
3531
|
-
"description": "Environment to use for the server-side defined EAS environment variables during command execution.",
|
|
3482
|
+
"description": "Environment to use for the server-side defined EAS environment variables during command execution, e.g. \"production\", \"preview\", \"development\"",
|
|
3532
3483
|
"required": false,
|
|
3533
|
-
"
|
|
3534
|
-
"multiple": false,
|
|
3535
|
-
"options": [
|
|
3536
|
-
"development",
|
|
3537
|
-
"preview",
|
|
3538
|
-
"production"
|
|
3539
|
-
],
|
|
3540
|
-
"default": null
|
|
3484
|
+
"multiple": false
|
|
3541
3485
|
},
|
|
3542
3486
|
"json": {
|
|
3543
3487
|
"name": "json",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eas-cli",
|
|
3
3
|
"description": "EAS command line tool",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.23.1",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"eas": "./bin/run"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@expo/code-signing-certificates": "0.0.5",
|
|
13
13
|
"@expo/config": "10.0.6",
|
|
14
14
|
"@expo/config-plugins": "9.0.12",
|
|
15
|
-
"@expo/eas-build-job": "1.0.
|
|
16
|
-
"@expo/eas-json": "16.
|
|
15
|
+
"@expo/eas-build-job": "1.0.237",
|
|
16
|
+
"@expo/eas-json": "16.23.0",
|
|
17
17
|
"@expo/env": "^1.0.0",
|
|
18
18
|
"@expo/json-file": "8.3.3",
|
|
19
19
|
"@expo/logger": "1.0.221",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"prepack": "yarn rebuild && node ./scripts/prepack.js",
|
|
227
227
|
"rebuild": "rimraf build && yarn build",
|
|
228
228
|
"pretarball-ci": "./scripts/pretarball-ci.sh",
|
|
229
|
-
"build": "tsc --project tsconfig.build.json",
|
|
229
|
+
"build": "tsc --project tsconfig.build.json && yarn copy-new-templates",
|
|
230
230
|
"build-allow-unused": "tsc --project tsconfig.allowUnused.json",
|
|
231
231
|
"watch": "yarn build --watch --preserveWatchOutput",
|
|
232
232
|
"watch-allow-unused": "yarn build-allow-unused --watch --preserveWatchOutput",
|
|
@@ -235,11 +235,12 @@
|
|
|
235
235
|
"version": "yarn oclif readme && node scripts/patch-readme && git add README.md",
|
|
236
236
|
"generate-graphql-code": "graphql-codegen --config graphql-codegen.yml",
|
|
237
237
|
"verify-graphql-code": "./scripts/verify-graphql.sh",
|
|
238
|
-
"clean": "rimraf dist build tmp node_modules yarn-error.log"
|
|
238
|
+
"clean": "rimraf dist build tmp node_modules yarn-error.log",
|
|
239
|
+
"copy-new-templates": "rimraf build/commandUtils/new/templates && mkdir -p build/commandUtils/new && cp -r src/commandUtils/new/templates build/commandUtils/new"
|
|
239
240
|
},
|
|
240
241
|
"volta": {
|
|
241
242
|
"node": "20.11.0",
|
|
242
243
|
"yarn": "1.22.21"
|
|
243
244
|
},
|
|
244
|
-
"gitHead": "
|
|
245
|
+
"gitHead": "322082c28b1dfea8a809c725c5952ec7666e8e55"
|
|
245
246
|
}
|