create-eas-build-function 1.0.271 → 18.0.3
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/LICENSE +21 -100
- package/build/cli.d.ts +1 -0
- package/build/createAsync.d.ts +8 -0
- package/build/error.d.ts +9 -0
- package/build/index.d.ts +0 -0
- package/build/index.js +8 -8
- package/build/log.d.ts +12 -0
- package/build/resolvePackageManager.d.ts +8 -0
- package/build/resolveProjectRoot.d.ts +3 -0
- package/build/templates.d.ts +15 -0
- package/build/utils/args.d.ts +32 -0
- package/build/utils/array.d.ts +1 -0
- package/build/utils/dir.d.ts +1 -0
- package/build/utils/log.d.ts +6 -0
- package/build/utils/updateCheck.d.ts +1 -0
- package/package.json +21 -24
- package/templates/javascript/package.json +7 -7
- package/templates/typescript/package.json +6 -6
package/build/log.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function error(...message: string[]): void;
|
|
2
|
+
/** Print an error and provide additional info (the stack trace) in debug mode. */
|
|
3
|
+
export declare function exception(e: Error): void;
|
|
4
|
+
export declare function log(...message: string[]): void;
|
|
5
|
+
/** Log a message and exit the current process. If the `code` is non-zero then `console.error` will be used instead of `console.log`. */
|
|
6
|
+
export declare function exit(message: string | Error, code?: number): never;
|
|
7
|
+
export declare const Log: {
|
|
8
|
+
error: typeof error;
|
|
9
|
+
exception: typeof exception;
|
|
10
|
+
log: typeof log;
|
|
11
|
+
exit: typeof exit;
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type PackageManagerName = 'npm' | 'pnpm' | 'yarn';
|
|
2
|
+
export declare function resolvePackageManager(): PackageManagerName;
|
|
3
|
+
export declare function formatSelfCommand(): string;
|
|
4
|
+
export declare function isPackageManagerAvailable(manager: PackageManagerName): boolean;
|
|
5
|
+
export declare function installDependenciesAsync(projectRoot: string, packageManager: PackageManagerName, flags?: {
|
|
6
|
+
silent: boolean;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
export declare function formatRunCommand(packageManager: PackageManagerName, cmd: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const TEMPLATES: {
|
|
2
|
+
title: string;
|
|
3
|
+
value: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const ALIASES: string[];
|
|
7
|
+
export declare function promptTemplateAsync(): Promise<'typescript' | 'javascript'>;
|
|
8
|
+
/**
|
|
9
|
+
* Extract a template app to a given file path and clean up any properties left over from npm to
|
|
10
|
+
* prepare it for usage.
|
|
11
|
+
*/
|
|
12
|
+
export declare function extractAndPrepareTemplateFunctionModuleAsync(projectRoot: string, resolvedTemplate: string): Promise<string>;
|
|
13
|
+
export declare function copyTemplateAsync(resolvedTemplate: string, props: {
|
|
14
|
+
cwd: string;
|
|
15
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import arg, { Spec } from 'arg';
|
|
2
|
+
/**
|
|
3
|
+
* Parse args and assert unknown options.
|
|
4
|
+
*
|
|
5
|
+
* @param schema the `args` schema for parsing the command line arguments.
|
|
6
|
+
* @param argv extra strings
|
|
7
|
+
* @returns processed args object.
|
|
8
|
+
*/
|
|
9
|
+
export declare function assertWithOptionsArgs(schema: arg.Spec, options: arg.Options): arg.Result<arg.Spec>;
|
|
10
|
+
export declare function printHelp(info: string, usage: string, options: string, extra?: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Enables the resolution of arguments that can either be a string or a boolean.
|
|
13
|
+
*
|
|
14
|
+
* @param args arguments that were passed to the command.
|
|
15
|
+
* @param rawMap raw map of arguments that are passed to the command.
|
|
16
|
+
* @param extraArgs extra arguments and aliases that should be resolved as string or boolean.
|
|
17
|
+
* @returns parsed arguments and project root.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveStringOrBooleanArgsAsync(args: string[], rawMap: arg.Spec, extraArgs: arg.Spec): {
|
|
20
|
+
args: Record<string, string | true | undefined>;
|
|
21
|
+
projectRoot: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function _resolveStringOrBooleanArgs(multiTypeArgs: Spec, args: string[]): {
|
|
24
|
+
args: Record<string, string | true | undefined>;
|
|
25
|
+
projectRoot: string;
|
|
26
|
+
};
|
|
27
|
+
/** Convert all aliases to fully qualified flag names. */
|
|
28
|
+
export declare function collapseAliases(arg: Spec, args: string[]): string[];
|
|
29
|
+
/** Assert that the spec has unknown arguments. */
|
|
30
|
+
export declare function assertUnknownArgs(arg: Spec, args: string[]): void;
|
|
31
|
+
/** Asserts that a duplicate flag has been used, this naively throws without knowing if an alias or flag were used as the duplicate. */
|
|
32
|
+
export declare function assertDuplicateArgs(args: string[], argNameAliasTuple: [string, string][]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function replaceValue<T>(values: T[], original: T, replacement: T): T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getConflictsForDirectory(projectRoot: string): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function shouldUpdate(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-eas-build-function",
|
|
3
|
-
"
|
|
4
|
-
"type": "git",
|
|
5
|
-
"url": "https://github.com/expo/eas-build.git",
|
|
6
|
-
"directory": "packages/create-eas-build-function"
|
|
7
|
-
},
|
|
8
|
-
"version": "1.0.271",
|
|
9
|
-
"bin": {
|
|
10
|
-
"create-eas-build-function": "./build/index.js"
|
|
11
|
-
},
|
|
12
|
-
"main": "build",
|
|
3
|
+
"version": "18.0.3",
|
|
13
4
|
"description": "Create functions for use in EAS Build custom builds.",
|
|
14
|
-
"license": "BSD-3-Clause",
|
|
15
5
|
"keywords": [
|
|
16
6
|
"expo",
|
|
17
|
-
"react
|
|
18
|
-
"react"
|
|
7
|
+
"react",
|
|
8
|
+
"react-native"
|
|
19
9
|
],
|
|
20
10
|
"homepage": "https://docs.expo.dev",
|
|
11
|
+
"license": "BSD-3-Clause",
|
|
21
12
|
"author": "Expo <support@expo.io>",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/expo/eas-cli.git",
|
|
16
|
+
"directory": "packages/create-eas-build-function"
|
|
17
|
+
},
|
|
18
|
+
"bin": "./build/index.js",
|
|
22
19
|
"files": [
|
|
23
20
|
"build",
|
|
24
21
|
"templates"
|
|
25
22
|
],
|
|
23
|
+
"main": "build",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"prepack": "yarn run clean && yarn run build",
|
|
28
|
-
"lint": "
|
|
29
|
+
"lint": "oxlint --type-aware --tsconfig ../../tsconfig.oxlint.json .",
|
|
29
30
|
"test": "echo 'No tests yet.'",
|
|
30
31
|
"watch": "yarn run build:dev -w",
|
|
31
32
|
"build:dev": "ncc build ./src/index.ts -o build/",
|
|
32
33
|
"build": "ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register",
|
|
33
|
-
"
|
|
34
|
+
"typecheck": "tsc",
|
|
35
|
+
"clean": "rimraf ./build/ \"*.tsbuildinfo\""
|
|
34
36
|
},
|
|
35
37
|
"dependencies": {
|
|
36
|
-
"@expo/steps": "
|
|
38
|
+
"@expo/steps": "18.0.2"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
41
|
"@expo/package-manager": "1.9.10",
|
|
@@ -45,17 +47,12 @@
|
|
|
45
47
|
"chalk": "4.1.2",
|
|
46
48
|
"fs-extra": "^11.2.0",
|
|
47
49
|
"ora": "^6.3.1",
|
|
50
|
+
"oxlint": "1.43.0",
|
|
48
51
|
"prompts": "^2.4.2",
|
|
52
|
+
"rimraf": "3.0.2",
|
|
49
53
|
"ts-node": "^10.9.2",
|
|
50
54
|
"typescript": "^5.5.4",
|
|
51
55
|
"update-check": "^1.5.4"
|
|
52
56
|
},
|
|
53
|
-
"
|
|
54
|
-
"access": "public"
|
|
55
|
-
},
|
|
56
|
-
"volta": {
|
|
57
|
-
"node": "20.14.0",
|
|
58
|
-
"yarn": "1.22.21"
|
|
59
|
-
},
|
|
60
|
-
"gitHead": "70864595ba2e0a0866025b574a30964f11bd91c4"
|
|
57
|
+
"gitHead": "d5da4f416791938a7c1ffdaf83a7c644e7aa6261"
|
|
61
58
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "custom-js-function",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"main": "./build/index.js",
|
|
5
4
|
"type": "commonjs",
|
|
6
|
-
"
|
|
7
|
-
"@vercel/ncc": "^0.38.1",
|
|
8
|
-
"@babel/cli": "^7.24.8",
|
|
9
|
-
"@babel/core": "^7.24.9",
|
|
10
|
-
"@babel/preset-env": "^7.24.8"
|
|
11
|
-
},
|
|
5
|
+
"main": "./build/index.js",
|
|
12
6
|
"scripts": {
|
|
13
7
|
"babel": "babel src --out-dir babel",
|
|
14
8
|
"build": "yarn babel && ncc build ./babel/index.js -o build/ --minify --no-cache --no-source-map-register"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@babel/cli": "^7.24.8",
|
|
12
|
+
"@babel/core": "^7.24.9",
|
|
13
|
+
"@babel/preset-env": "^7.24.8",
|
|
14
|
+
"@vercel/ncc": "^0.38.1"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"name": "custom-ts-function",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "",
|
|
6
7
|
"type": "commonjs",
|
|
8
|
+
"main": "./build/index.js",
|
|
7
9
|
"scripts": {
|
|
8
10
|
"build": "ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register"
|
|
9
11
|
},
|
|
10
|
-
"keywords": [],
|
|
11
|
-
"author": "",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@
|
|
13
|
+
"@expo/steps": "^1.0.119",
|
|
14
14
|
"@types/node": "20.14.11",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"@vercel/ncc": "^0.38.1",
|
|
16
|
+
"typescript": "^5.5.3"
|
|
17
17
|
}
|
|
18
18
|
}
|