@expo/build-tools 1.0.145 → 1.0.147
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.
|
@@ -4,7 +4,7 @@ exports.eagerBundleAsync = void 0;
|
|
|
4
4
|
const project_1 = require("../utils/project");
|
|
5
5
|
async function eagerBundleAsync({ platform, workingDir, logger, env, packageManager, }) {
|
|
6
6
|
await (0, project_1.runExpoCliCommand)({
|
|
7
|
-
args: ['export:embed', '--eager', '--platform', platform],
|
|
7
|
+
args: ['export:embed', '--eager', '--platform', platform, '--dev', 'false'],
|
|
8
8
|
options: {
|
|
9
9
|
cwd: workingDir,
|
|
10
10
|
logger,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eagerBundle.js","sourceRoot":"","sources":["../../src/common/eagerBundle.ts"],"names":[],"mappings":";;;AAGA,8CAAqD;AAG9C,KAAK,UAAU,gBAAgB,CAAC,EACrC,QAAQ,EACR,UAAU,EACV,MAAM,EACN,GAAG,EACH,cAAc,GAOf;IACC,MAAM,IAAA,2BAAiB,EAAC;QACtB,IAAI,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"eagerBundle.js","sourceRoot":"","sources":["../../src/common/eagerBundle.ts"],"names":[],"mappings":";;;AAGA,8CAAqD;AAG9C,KAAK,UAAU,gBAAgB,CAAC,EACrC,QAAQ,EACR,UAAU,EACV,MAAM,EACN,GAAG,EACH,cAAc,GAOf;IACC,MAAM,IAAA,2BAAiB,EAAC;QACtB,IAAI,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;QAC3E,OAAO,EAAE;YACP,GAAG,EAAE,UAAU;YACf,MAAM;YACN,GAAG;SACJ;QACD,cAAc;KACf,CAAC,CAAC;AACL,CAAC;AAtBD,4CAsBC","sourcesContent":["import { Platform } from '@expo/eas-build-job';\nimport { bunyan } from '@expo/logger';\n\nimport { runExpoCliCommand } from '../utils/project';\nimport { PackageManager } from '../utils/packageManager';\n\nexport async function eagerBundleAsync({\n platform,\n workingDir,\n logger,\n env,\n packageManager,\n}: {\n platform: Platform;\n workingDir: string;\n logger: bunyan;\n env: Record<string, string | undefined>;\n packageManager: PackageManager;\n}): Promise<void> {\n await runExpoCliCommand({\n args: ['export:embed', '--eager', '--platform', platform, '--dev', 'false'],\n options: {\n cwd: workingDir,\n logger,\n env,\n },\n packageManager,\n });\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DO NOT EDIT unless the same change is made in `@expo/fingerprint`
|
|
3
|
-
* The diffFingerprints function is a copy/paste from
|
|
3
|
+
* The diffFingerprints function is a copy/paste from that package.
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="node" />
|
|
6
6
|
export type FingerprintSource = HashSource & {
|
|
@@ -64,19 +64,38 @@ export interface DebugInfoContents {
|
|
|
64
64
|
hash: string;
|
|
65
65
|
}
|
|
66
66
|
export type DebugInfo = DebugInfoFile | DebugInfoDir | DebugInfoContents;
|
|
67
|
-
export
|
|
67
|
+
export type FingerprintDiffItem = {
|
|
68
68
|
/**
|
|
69
69
|
* The operation type of the diff item.
|
|
70
70
|
*/
|
|
71
|
-
op: 'added'
|
|
71
|
+
op: 'added';
|
|
72
72
|
/**
|
|
73
|
-
* The source
|
|
74
|
-
* - When type is 'added', the source is the new source.
|
|
75
|
-
* - When type is 'removed', the source is the old source.
|
|
76
|
-
* - When type is 'changed', the source is the new source.
|
|
73
|
+
* The added source.
|
|
77
74
|
*/
|
|
78
|
-
|
|
79
|
-
}
|
|
75
|
+
addedSource: FingerprintSource;
|
|
76
|
+
} | {
|
|
77
|
+
/**
|
|
78
|
+
* The operation type of the diff item.
|
|
79
|
+
*/
|
|
80
|
+
op: 'removed';
|
|
81
|
+
/**
|
|
82
|
+
* The removed source.
|
|
83
|
+
*/
|
|
84
|
+
removedSource: FingerprintSource;
|
|
85
|
+
} | {
|
|
86
|
+
/**
|
|
87
|
+
* The operation type of the diff item.
|
|
88
|
+
*/
|
|
89
|
+
op: 'changed';
|
|
90
|
+
/**
|
|
91
|
+
* The source before.
|
|
92
|
+
*/
|
|
93
|
+
beforeSource: FingerprintSource;
|
|
94
|
+
/**
|
|
95
|
+
* The source after.
|
|
96
|
+
*/
|
|
97
|
+
afterSource: FingerprintSource;
|
|
98
|
+
};
|
|
80
99
|
/**
|
|
81
100
|
* Comparator between two sources.
|
|
82
101
|
* This is useful for sorting sources in a consistent order.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* DO NOT EDIT unless the same change is made in `@expo/fingerprint`
|
|
4
|
-
* The diffFingerprints function is a copy/paste from
|
|
4
|
+
* The diffFingerprints function is a copy/paste from that package.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.stringifyFingerprintDiff = exports.diffFingerprints = exports.compareSource = void 0;
|
|
@@ -44,26 +44,26 @@ function diffFingerprints(fingerprint1, fingerprint2) {
|
|
|
44
44
|
const compareResult = compareSource(source1, source2);
|
|
45
45
|
if (compareResult === 0) {
|
|
46
46
|
if (source1.hash !== source2.hash) {
|
|
47
|
-
diff.push({ op: 'changed',
|
|
47
|
+
diff.push({ op: 'changed', beforeSource: source1, afterSource: source2 });
|
|
48
48
|
}
|
|
49
49
|
++index1;
|
|
50
50
|
++index2;
|
|
51
51
|
}
|
|
52
52
|
else if (compareResult < 0) {
|
|
53
|
-
diff.push({ op: 'removed',
|
|
53
|
+
diff.push({ op: 'removed', removedSource: source1 });
|
|
54
54
|
++index1;
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
|
-
diff.push({ op: 'added',
|
|
57
|
+
diff.push({ op: 'added', addedSource: source2 });
|
|
58
58
|
++index2;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
while (index1 < fingerprint1.sources.length) {
|
|
62
|
-
diff.push({ op: 'removed',
|
|
62
|
+
diff.push({ op: 'removed', removedSource: fingerprint1.sources[index1] });
|
|
63
63
|
++index1;
|
|
64
64
|
}
|
|
65
65
|
while (index2 < fingerprint2.sources.length) {
|
|
66
|
-
diff.push({ op: 'added',
|
|
66
|
+
diff.push({ op: 'added', addedSource: fingerprint2.sources[index2] });
|
|
67
67
|
++index2;
|
|
68
68
|
}
|
|
69
69
|
return diff;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../src/utils/fingerprint.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"fingerprint.js","sourceRoot":"","sources":["../../src/utils/fingerprint.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAiHH,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,QAAQ,EAAE,CAAC;CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,CAAa,EAAE,CAAa;IACxD,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;QACrB,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC3C,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;aAAM,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;YAChD,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC9C,CAAC;aAAM,IAAI,CAAC,CAAC,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E,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;YACjD,EAAE,MAAM,CAAC;QACX,CAAC;IACH,CAAC;IAED,OAAO,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAC5C,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC1E,EAAE,MAAM,CAAC;IACX,CAAC;IACD,OAAO,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAC5C,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACtE,EAAE,MAAM,CAAC;IACX,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAtCD,4CAsCC;AAED,SAAgB,wBAAwB,CAAC,eAAsC;IAC7E,OAAO,IAAI,CAAC,SAAS,CACnB,eAAe,EACf,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QACb,IAAI,GAAG,KAAK,UAAU,EAAE,CAAC;YACvB,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC/B,OAAO,IAAI,CAAC;YACd,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,EACD,GAAG,CACJ,CAAC;AACJ,CAAC;AAhBD,4DAgBC","sourcesContent":["/**\n * DO NOT EDIT unless the same change is made in `@expo/fingerprint`\n * The diffFingerprints function is a copy/paste from that package.\n */\n\nexport type FingerprintSource = HashSource & {\n /**\n * Hash value of the `source`.\n * If the source is excluding by `Options.dirExcludes`, the value will be null.\n */\n hash: string | null;\n /**\n * Debug info from the hashing process. Differs based on source type. Designed to be consumed by humans\n * as opposed to programmatically.\n */\n debugInfo?: DebugInfo;\n};\n\nexport interface Fingerprint {\n /**\n * Sources and their hash values to generate a fingerprint\n */\n sources: FingerprintSource[];\n\n /**\n * The final hash value of the whole fingerprint\n */\n hash: string;\n}\n\nexport interface HashSourceFile {\n type: 'file';\n filePath: string;\n\n /**\n * Reasons of this source coming from\n */\n reasons: string[];\n}\n\nexport interface HashSourceDir {\n type: 'dir';\n filePath: string;\n\n /**\n * Reasons of this source coming from\n */\n reasons: string[];\n}\n\nexport interface HashSourceContents {\n type: 'contents';\n id: string;\n contents: string | Buffer;\n\n /**\n * Reasons of this source coming from\n */\n reasons: string[];\n}\n\nexport type HashSource = HashSourceFile | HashSourceDir | HashSourceContents;\n\nexport interface DebugInfoFile {\n path: string;\n hash: string;\n}\n\nexport interface DebugInfoDir {\n path: string;\n hash: string;\n children: (DebugInfoFile | DebugInfoDir | undefined)[];\n}\n\nexport interface DebugInfoContents {\n hash: string;\n}\n\nexport type DebugInfo = DebugInfoFile | DebugInfoDir | DebugInfoContents;\n\nexport type FingerprintDiffItem =\n | {\n /**\n * The operation type of the diff item.\n */\n op: 'added';\n /**\n * The added source.\n */\n addedSource: FingerprintSource;\n }\n | {\n /**\n * The operation type of the diff item.\n */\n op: 'removed';\n /**\n * The removed source.\n */\n removedSource: FingerprintSource;\n }\n | {\n /**\n * The operation type of the diff item.\n */\n op: 'changed';\n /**\n * The source before.\n */\n beforeSource: FingerprintSource;\n /**\n * The source after.\n */\n afterSource: FingerprintSource;\n };\n\nconst typeOrder = {\n file: 0,\n dir: 1,\n contents: 2,\n};\n\n/**\n * Comparator between two sources.\n * This is useful for sorting sources in a consistent order.\n * @returns:\n * == 0 if a and b are equal,\n * < 0 if a is less than b,\n * > 0 if a is greater than b.\n */\nexport function compareSource(a: HashSource, b: HashSource): number {\n const typeResult = typeOrder[a.type] - typeOrder[b.type];\n if (typeResult === 0) {\n if (a.type === 'file' && b.type === 'file') {\n return a.filePath.localeCompare(b.filePath);\n } else if (a.type === 'dir' && b.type === 'dir') {\n return a.filePath.localeCompare(b.filePath);\n } else if (a.type === 'contents' && b.type === 'contents') {\n return a.id.localeCompare(b.id);\n }\n }\n return typeResult;\n}\n\nexport function diffFingerprints(\n fingerprint1: Fingerprint,\n fingerprint2: Fingerprint\n): FingerprintDiffItem[] {\n let index1 = 0;\n let index2 = 0;\n const diff: FingerprintDiffItem[] = [];\n\n while (index1 < fingerprint1.sources.length && index2 < fingerprint2.sources.length) {\n const source1 = fingerprint1.sources[index1];\n const source2 = fingerprint2.sources[index2];\n\n const compareResult = compareSource(source1, source2);\n if (compareResult === 0) {\n if (source1.hash !== source2.hash) {\n diff.push({ op: 'changed', beforeSource: source1, afterSource: source2 });\n }\n ++index1;\n ++index2;\n } else if (compareResult < 0) {\n diff.push({ op: 'removed', removedSource: source1 });\n ++index1;\n } else {\n diff.push({ op: 'added', addedSource: source2 });\n ++index2;\n }\n }\n\n while (index1 < fingerprint1.sources.length) {\n diff.push({ op: 'removed', removedSource: fingerprint1.sources[index1] });\n ++index1;\n }\n while (index2 < fingerprint2.sources.length) {\n diff.push({ op: 'added', addedSource: fingerprint2.sources[index2] });\n ++index2;\n }\n\n return diff;\n}\n\nexport function stringifyFingerprintDiff(fingerprintDiff: FingerprintDiffItem[]): string {\n return JSON.stringify(\n fingerprintDiff,\n (key, value) => {\n if (key === 'contents') {\n try {\n const item = JSON.parse(value);\n return item;\n } catch {\n return value;\n }\n }\n return value;\n },\n ' '\n );\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/build-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.147",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"node": "20.14.0",
|
|
71
71
|
"yarn": "1.22.21"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "9b3bdfa79de2b7219944d782c2147ad6328a1bd3"
|
|
74
74
|
}
|