@expo/fingerprint 0.20.12 → 0.21.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/build/Config.js +69 -44
- package/build/Config.js.map +1 -1
- package/build/Dedup.js +82 -36
- package/build/Dedup.js.map +1 -1
- package/build/ExpoConfig.d.ts +11 -2
- package/build/ExpoConfig.js +118 -34
- package/build/ExpoConfig.js.map +1 -1
- package/build/ExpoConfigLoader.d.ts +41 -0
- package/build/ExpoConfigLoader.js +185 -145
- package/build/ExpoConfigLoader.js.map +1 -1
- package/build/ExpoResolver.js +77 -43
- package/build/ExpoResolver.js.map +1 -1
- package/build/Fingerprint.js +67 -76
- package/build/Fingerprint.js.map +1 -1
- package/build/Fingerprint.types.d.ts +98 -5
- package/build/Fingerprint.types.js +6 -3
- package/build/Fingerprint.types.js.map +1 -1
- package/build/Options.d.ts +1 -2
- package/build/Options.js +101 -49
- package/build/Options.js.map +1 -1
- package/build/Presets.d.ts +24 -0
- package/build/Presets.js +50 -0
- package/build/Presets.js.map +1 -0
- package/build/ProjectWorkflow.js +129 -67
- package/build/ProjectWorkflow.js.map +1 -1
- package/build/Sort.js +30 -16
- package/build/Sort.js.map +1 -1
- package/build/hash/FileHookTransform.js +26 -20
- package/build/hash/FileHookTransform.js.map +1 -1
- package/build/hash/Hash.d.ts +8 -1
- package/build/hash/Hash.js +204 -116
- package/build/hash/Hash.js.map +1 -1
- package/build/hash/ReactImportsPatcher.js +39 -27
- package/build/hash/ReactImportsPatcher.js.map +1 -1
- package/build/index.js +40 -22
- package/build/index.js.map +1 -1
- package/build/sourcer/Bare.js +184 -93
- package/build/sourcer/Bare.js.map +1 -1
- package/build/sourcer/Expo.d.ts +3 -2
- package/build/sourcer/Expo.js +250 -119
- package/build/sourcer/Expo.js.map +1 -1
- package/build/sourcer/Packages.d.ts +4 -3
- package/build/sourcer/Packages.js +83 -23
- package/build/sourcer/Packages.js.map +1 -1
- package/build/sourcer/PatchPackage.js +32 -14
- package/build/sourcer/PatchPackage.js.map +1 -1
- package/build/sourcer/SourceSkips.d.ts +18 -2
- package/build/sourcer/SourceSkips.js +53 -45
- package/build/sourcer/SourceSkips.js.map +1 -1
- package/build/sourcer/Sourcer.js +57 -38
- package/build/sourcer/Sourcer.js.map +1 -1
- package/build/sourcer/Utils.d.ts +14 -0
- package/build/sourcer/Utils.js +113 -41
- package/build/sourcer/Utils.js.map +1 -1
- package/build/types/module.d.ts +7 -0
- package/build/utils/Concurrency.js +29 -22
- package/build/utils/Concurrency.js.map +1 -1
- package/build/utils/Path.d.ts +5 -0
- package/build/utils/Path.js +138 -75
- package/build/utils/Path.js.map +1 -1
- package/build/utils/Predicates.js +11 -3
- package/build/utils/Predicates.js.map +1 -1
- package/build/utils/Profile.js +29 -20
- package/build/utils/Profile.js.map +1 -1
- package/build/utils/SpawnIPC.js +41 -16
- package/build/utils/SpawnIPC.js.map +1 -1
- package/cli/build/cli.js +94 -60
- package/cli/build/cli.js.map +1 -0
- package/cli/build/commands/diffFingerprints.js +76 -53
- package/cli/build/commands/diffFingerprints.js.map +1 -0
- package/cli/build/commands/generateFingerprint.js +129 -72
- package/cli/build/commands/generateFingerprint.js.map +1 -0
- package/cli/build/runLegacyCLIAsync.js +31 -22
- package/cli/build/runLegacyCLIAsync.js.map +1 -0
- package/cli/build/utils/args.js +110 -67
- package/cli/build/utils/args.js.map +1 -0
- package/cli/build/utils/errors.js +49 -20
- package/cli/build/utils/errors.js.map +1 -0
- package/cli/build/utils/log.js +62 -20
- package/cli/build/utils/log.js.map +1 -0
- package/cli/build/utils/readFingerprintFileAsync.js +25 -9
- package/cli/build/utils/readFingerprintFileAsync.js.map +1 -0
- package/cli/build/utils/withConsoleDisabledAsync.js +16 -8
- package/cli/build/utils/withConsoleDisabledAsync.js.map +1 -0
- package/package.json +37 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["hash/ReactImportsPatcher.ts"],"sourcesContent":[null],"names":["ReactImportsPatchTransform","patchChunk","Transform","readLength","lengthOfFilePortionContainingHeadersToTransform","transformFn","DEFAULT_LENGTH_OF_FILE_PORTION_CONTAINING_HEADERS_TO_TRANSFORM","options","_transform","chunk","_encoding","callback","remainingLength","result","toString","length","portionToTransform","slice","portionToLeave","push","headerSet","HEADER_SET","transformContent","replace","match","headerName","has","startsWith","name","substring","ifPrefix","Set"],"mappings":";;;;;;;;;;;;;;;QAmBaA;eAAAA;;QAqCGC;eAAAA;;;;yBAxDkC;;;;;;AAmB3C,MAAMD,mCAAmCE,mBAAS;IAC/CC,aAAqB,EAAE;IACdC,gDAAwD;IACxDC,YAAuC;IACxD,OAAeC,iEAAiE,KAAK,KAAK;IAE1F,YAAYC,OAAiB,CAAE;QAC7B,KAAK;QACL,IAAI,CAACH,+CAA+C,GAClDG,SAASH,mDACTJ,2BAA2BM,8DAA8D;QAC3F,IAAI,CAACD,WAAW,GAAGE,SAASF,eAAeJ;IAC7C;IAEAO,WAAWC,KAAU,EAAEC,SAAyB,EAAEC,QAA2B,EAAQ;QACnF,MAAMC,kBAAkB,IAAI,CAACR,+CAA+C,GAAG,IAAI,CAACD,UAAU;QAC9F,IAAIU;QACJ,IAAID,mBAAmB,GAAG;YACxBC,SAASJ,MAAMK,QAAQ;QACzB,OAAO,IAAIF,mBAAmBH,MAAMM,MAAM,EAAE;YAC1CF,SAAS,IAAI,CAACR,WAAW,CAACI,MAAMK,QAAQ;QAC1C,OAAO;YACL,MAAME,qBAAqBP,MAAMQ,KAAK,CAAC,GAAGL,iBAAiBE,QAAQ;YACnE,MAAMI,iBAAiBT,MAAMQ,KAAK,CAACL,iBAAiBE,QAAQ;YAC5DD,SAAS,IAAI,CAACR,WAAW,CAACW,sBAAsBE;QAClD;QACA,IAAI,CAACC,IAAI,CAACN;QACV,IAAI,CAACV,UAAU,IAAIM,MAAMM,MAAM;QAC/BJ;IACF;AACF;AAOO,SAASV,WAAWQ,KAAa,EAAEW,YAAyBC,UAA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IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD"}
|
package/build/index.js
CHANGED
|
@@ -1,24 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
DEFAULT_IGNORE_PATHS: null,
|
|
7
|
+
DEFAULT_SOURCE_SKIPS: null
|
|
8
|
+
});
|
|
9
|
+
function _export(target, all) {
|
|
10
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
_export(exports, {
|
|
16
|
+
get DEFAULT_IGNORE_PATHS () {
|
|
17
|
+
return _Options.DEFAULT_IGNORE_PATHS;
|
|
18
|
+
},
|
|
19
|
+
get DEFAULT_SOURCE_SKIPS () {
|
|
20
|
+
return _Options.DEFAULT_SOURCE_SKIPS;
|
|
7
21
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
});
|
|
23
|
+
0 && __export(require("./Fingerprint")) && __export(require("./Fingerprint.types")) && __export(require("./sourcer/SourceSkips"));
|
|
24
|
+
_export_star(require("./Fingerprint"), exports);
|
|
25
|
+
_export_star(require("./Fingerprint.types"), exports);
|
|
26
|
+
_export_star(require("./sourcer/SourceSkips"), exports);
|
|
27
|
+
const _Options = require("./Options");
|
|
28
|
+
function _export_star(from, to) {
|
|
29
|
+
Object.keys(from).forEach(function(k) {
|
|
30
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
31
|
+
Object.defineProperty(to, k, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function() {
|
|
34
|
+
return from[k];
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return from;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":[null],"names":["DEFAULT_IGNORE_PATHS","DEFAULT_SOURCE_SKIPS"],"mappings":";;;;;;;;;;;;;;;QAGSA;eAAAA,6BAAoB;;QAAEC;eAAAA,6BAAoB;;;;qBAHrC;qBACA;qBACA;yBAC6C"}
|
package/build/sourcer/Bare.js
CHANGED
|
@@ -1,80 +1,164 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
getBareAndroidSourcesAsync: null,
|
|
7
|
+
getBareIosSourcesAsync: null,
|
|
8
|
+
getCoreAutolinkingSourcesFromExpoAndroid: null,
|
|
9
|
+
getCoreAutolinkingSourcesFromExpoIos: null,
|
|
10
|
+
getCoreAutolinkingSourcesFromRncCliAsync: null,
|
|
11
|
+
getGitIgnoreSourcesAsync: null,
|
|
12
|
+
getPackageJsonScriptSourcesAsync: null
|
|
13
|
+
});
|
|
14
|
+
function _export(target, all) {
|
|
15
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
_export(exports, {
|
|
21
|
+
get getBareAndroidSourcesAsync () {
|
|
22
|
+
return getBareAndroidSourcesAsync;
|
|
23
|
+
},
|
|
24
|
+
get getBareIosSourcesAsync () {
|
|
25
|
+
return getBareIosSourcesAsync;
|
|
26
|
+
},
|
|
27
|
+
get getCoreAutolinkingSourcesFromExpoAndroid () {
|
|
28
|
+
return getCoreAutolinkingSourcesFromExpoAndroid;
|
|
29
|
+
},
|
|
30
|
+
get getCoreAutolinkingSourcesFromExpoIos () {
|
|
31
|
+
return getCoreAutolinkingSourcesFromExpoIos;
|
|
32
|
+
},
|
|
33
|
+
get getCoreAutolinkingSourcesFromRncCliAsync () {
|
|
34
|
+
return getCoreAutolinkingSourcesFromRncCliAsync;
|
|
35
|
+
},
|
|
36
|
+
get getGitIgnoreSourcesAsync () {
|
|
37
|
+
return getGitIgnoreSourcesAsync;
|
|
38
|
+
},
|
|
39
|
+
get getPackageJsonScriptSourcesAsync () {
|
|
40
|
+
return getPackageJsonScriptSourcesAsync;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
function _env() {
|
|
44
|
+
const data = require("@expo/env");
|
|
45
|
+
_env = function() {
|
|
46
|
+
return data;
|
|
47
|
+
};
|
|
48
|
+
return data;
|
|
49
|
+
}
|
|
50
|
+
function _spawnasync() {
|
|
51
|
+
const data = /*#__PURE__*/ _interop_require_default(require("@expo/spawn-async"));
|
|
52
|
+
_spawnasync = function() {
|
|
53
|
+
return data;
|
|
54
|
+
};
|
|
55
|
+
return data;
|
|
56
|
+
}
|
|
57
|
+
function _assert() {
|
|
58
|
+
const data = /*#__PURE__*/ _interop_require_default(require("assert"));
|
|
59
|
+
_assert = function() {
|
|
60
|
+
return data;
|
|
61
|
+
};
|
|
62
|
+
return data;
|
|
63
|
+
}
|
|
64
|
+
function _chalk() {
|
|
65
|
+
const data = /*#__PURE__*/ _interop_require_default(require("chalk"));
|
|
66
|
+
_chalk = function() {
|
|
67
|
+
return data;
|
|
68
|
+
};
|
|
69
|
+
return data;
|
|
70
|
+
}
|
|
71
|
+
function _nodeprocess() {
|
|
72
|
+
const data = /*#__PURE__*/ _interop_require_default(require("node:process"));
|
|
73
|
+
_nodeprocess = function() {
|
|
74
|
+
return data;
|
|
75
|
+
};
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
function _path() {
|
|
79
|
+
const data = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
80
|
+
_path = function() {
|
|
81
|
+
return data;
|
|
82
|
+
};
|
|
83
|
+
return data;
|
|
84
|
+
}
|
|
85
|
+
function _resolvefrom() {
|
|
86
|
+
const data = /*#__PURE__*/ _interop_require_default(require("resolve-from"));
|
|
87
|
+
_resolvefrom = function() {
|
|
88
|
+
return data;
|
|
89
|
+
};
|
|
90
|
+
return data;
|
|
91
|
+
}
|
|
92
|
+
const _ExpoResolver = require("../ExpoResolver");
|
|
93
|
+
const _Path = require("../utils/Path");
|
|
94
|
+
const _SourceSkips = require("./SourceSkips");
|
|
95
|
+
const _Utils = require("./Utils");
|
|
96
|
+
function _interop_require_default(obj) {
|
|
97
|
+
return obj && obj.__esModule ? obj : {
|
|
98
|
+
default: obj
|
|
99
|
+
};
|
|
100
|
+
}
|
|
24
101
|
const debug = require('debug')('expo:fingerprint:sourcer:Bare');
|
|
25
102
|
async function getBareAndroidSourcesAsync(projectRoot, options) {
|
|
26
103
|
if (options.platforms.includes('android')) {
|
|
27
|
-
const result = await (0,
|
|
104
|
+
const result = await (0, _Utils.getFileBasedHashSourceAsync)(projectRoot, 'android', 'bareNativeDir');
|
|
28
105
|
if (result != null) {
|
|
29
|
-
debug(`Adding bare native dir - ${
|
|
30
|
-
return [
|
|
106
|
+
debug(`Adding bare native dir - ${_chalk().default.dim('android')}`);
|
|
107
|
+
return [
|
|
108
|
+
result
|
|
109
|
+
];
|
|
31
110
|
}
|
|
32
111
|
}
|
|
33
112
|
return [];
|
|
34
113
|
}
|
|
35
114
|
async function getBareIosSourcesAsync(projectRoot, options) {
|
|
36
115
|
if (options.platforms.includes('ios')) {
|
|
37
|
-
const result = await (0,
|
|
116
|
+
const result = await (0, _Utils.getFileBasedHashSourceAsync)(projectRoot, 'ios', 'bareNativeDir');
|
|
38
117
|
if (result != null) {
|
|
39
|
-
debug(`Adding bare native dir - ${
|
|
40
|
-
return [
|
|
118
|
+
debug(`Adding bare native dir - ${_chalk().default.dim('ios')}`);
|
|
119
|
+
return [
|
|
120
|
+
result
|
|
121
|
+
];
|
|
41
122
|
}
|
|
42
123
|
}
|
|
43
124
|
return [];
|
|
44
125
|
}
|
|
45
126
|
async function getPackageJsonScriptSourcesAsync(projectRoot, options) {
|
|
46
|
-
if (options.sourceSkips &
|
|
127
|
+
if (options.sourceSkips & _SourceSkips.SourceSkips.PackageJsonScriptsAll) {
|
|
47
128
|
return [];
|
|
48
129
|
}
|
|
49
130
|
let packageJson;
|
|
50
131
|
try {
|
|
51
|
-
packageJson = require((0,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
debug(`Unable to read package.json from ${path_1.default.resolve(projectRoot)}/package.json: ` + e);
|
|
132
|
+
packageJson = require((0, _resolvefrom().default)(_path().default.resolve(projectRoot), './package.json'));
|
|
133
|
+
} catch (e) {
|
|
134
|
+
debug(`Unable to read package.json from ${_path().default.resolve(projectRoot)}/package.json: ` + e);
|
|
55
135
|
return [];
|
|
56
136
|
}
|
|
57
137
|
const results = [];
|
|
58
138
|
if (packageJson.scripts) {
|
|
59
|
-
debug(`Adding package.json contents - ${
|
|
139
|
+
debug(`Adding package.json contents - ${_chalk().default.dim('scripts')}`);
|
|
60
140
|
const id = 'packageJson:scripts';
|
|
61
141
|
results.push({
|
|
62
142
|
type: 'contents',
|
|
63
143
|
id,
|
|
64
144
|
contents: normalizePackageJsonScriptSources(packageJson.scripts, options),
|
|
65
|
-
reasons: [
|
|
145
|
+
reasons: [
|
|
146
|
+
id
|
|
147
|
+
]
|
|
66
148
|
});
|
|
67
149
|
}
|
|
68
150
|
return results;
|
|
69
151
|
}
|
|
70
152
|
async function getGitIgnoreSourcesAsync(projectRoot, options) {
|
|
71
|
-
if (options.sourceSkips &
|
|
153
|
+
if (options.sourceSkips & _SourceSkips.SourceSkips.GitIgnore) {
|
|
72
154
|
return [];
|
|
73
155
|
}
|
|
74
|
-
const result = await (0,
|
|
156
|
+
const result = await (0, _Utils.getFileBasedHashSourceAsync)(projectRoot, '.gitignore', 'bareGitIgnore');
|
|
75
157
|
if (result != null) {
|
|
76
|
-
debug(`Adding file - ${
|
|
77
|
-
return [
|
|
158
|
+
debug(`Adding file - ${_chalk().default.dim('.gitignore')}`);
|
|
159
|
+
return [
|
|
160
|
+
result
|
|
161
|
+
];
|
|
78
162
|
}
|
|
79
163
|
return [];
|
|
80
164
|
}
|
|
@@ -83,20 +167,25 @@ async function getCoreAutolinkingSourcesFromRncCliAsync(projectRoot, options, us
|
|
|
83
167
|
return [];
|
|
84
168
|
}
|
|
85
169
|
try {
|
|
86
|
-
const { stdout } = await (0,
|
|
170
|
+
const { stdout } = await (0, _spawnasync().default)('npx', [
|
|
171
|
+
'react-native',
|
|
172
|
+
'config'
|
|
173
|
+
], {
|
|
87
174
|
cwd: projectRoot,
|
|
88
|
-
env: (0,
|
|
175
|
+
env: (0, _env().getOriginalEnv)()
|
|
89
176
|
});
|
|
90
177
|
const config = JSON.parse(stdout);
|
|
91
178
|
const results = await parseCoreAutolinkingSourcesAsync({
|
|
92
179
|
config,
|
|
93
180
|
contentsId: 'rncoreAutolinkingConfig',
|
|
94
|
-
reasons: [
|
|
181
|
+
reasons: [
|
|
182
|
+
'rncoreAutolinking'
|
|
183
|
+
],
|
|
184
|
+
nativeModuleSourceType: options.nativeModuleSourceType
|
|
95
185
|
});
|
|
96
186
|
return results;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
debug(chalk_1.default.red(`Error adding react-native core autolinking sources.\n${e}`));
|
|
187
|
+
} catch (e) {
|
|
188
|
+
debug(_chalk().default.red(`Error adding react-native core autolinking sources.\n${e}`));
|
|
100
189
|
return [];
|
|
101
190
|
}
|
|
102
191
|
}
|
|
@@ -105,28 +194,30 @@ async function getCoreAutolinkingSourcesFromExpoAndroid(projectRoot, options, us
|
|
|
105
194
|
return [];
|
|
106
195
|
}
|
|
107
196
|
const args = [
|
|
108
|
-
(0,
|
|
197
|
+
(0, _ExpoResolver.resolveExpoAutolinkingCliPath)(projectRoot),
|
|
109
198
|
'react-native-config',
|
|
110
199
|
'--json',
|
|
111
200
|
'--platform',
|
|
112
|
-
'android'
|
|
201
|
+
'android'
|
|
113
202
|
];
|
|
114
203
|
try {
|
|
115
|
-
const { stdout } = await (0,
|
|
204
|
+
const { stdout } = await (0, _spawnasync().default)('node', args, {
|
|
116
205
|
cwd: projectRoot,
|
|
117
|
-
env: (0,
|
|
206
|
+
env: (0, _env().getOriginalEnv)()
|
|
118
207
|
});
|
|
119
208
|
const config = JSON.parse(stdout);
|
|
120
209
|
const results = await parseCoreAutolinkingSourcesAsync({
|
|
121
210
|
config,
|
|
122
211
|
contentsId: 'rncoreAutolinkingConfig:android',
|
|
123
|
-
reasons: [
|
|
124
|
-
|
|
212
|
+
reasons: [
|
|
213
|
+
'rncoreAutolinkingAndroid'
|
|
214
|
+
],
|
|
215
|
+
nativeModuleSourceType: options.nativeModuleSourceType,
|
|
216
|
+
platform: 'android'
|
|
125
217
|
});
|
|
126
218
|
return results;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
debug(chalk_1.default.red(`Error adding react-native core autolinking sources for android.\n${e}`));
|
|
219
|
+
} catch (e) {
|
|
220
|
+
debug(_chalk().default.red(`Error adding react-native core autolinking sources for android.\n${e}`));
|
|
130
221
|
return [];
|
|
131
222
|
}
|
|
132
223
|
}
|
|
@@ -135,81 +226,80 @@ async function getCoreAutolinkingSourcesFromExpoIos(projectRoot, options, useRNC
|
|
|
135
226
|
return [];
|
|
136
227
|
}
|
|
137
228
|
try {
|
|
138
|
-
const { stdout } = await (0,
|
|
139
|
-
(0,
|
|
229
|
+
const { stdout } = await (0, _spawnasync().default)('node', [
|
|
230
|
+
(0, _ExpoResolver.resolveExpoAutolinkingCliPath)(projectRoot),
|
|
140
231
|
'react-native-config',
|
|
141
232
|
'--json',
|
|
142
233
|
'--platform',
|
|
143
|
-
'ios'
|
|
144
|
-
], {
|
|
234
|
+
'ios'
|
|
235
|
+
], {
|
|
236
|
+
cwd: projectRoot,
|
|
237
|
+
env: (0, _env().getOriginalEnv)()
|
|
238
|
+
});
|
|
145
239
|
const config = JSON.parse(stdout);
|
|
146
240
|
const results = await parseCoreAutolinkingSourcesAsync({
|
|
147
241
|
config,
|
|
148
242
|
contentsId: 'rncoreAutolinkingConfig:ios',
|
|
149
|
-
reasons: [
|
|
150
|
-
|
|
243
|
+
reasons: [
|
|
244
|
+
'rncoreAutolinkingIos'
|
|
245
|
+
],
|
|
246
|
+
nativeModuleSourceType: options.nativeModuleSourceType,
|
|
247
|
+
platform: 'ios'
|
|
151
248
|
});
|
|
152
249
|
return results;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
debug(chalk_1.default.red(`Error adding react-native core autolinking sources for ios.\n${e}`));
|
|
250
|
+
} catch (e) {
|
|
251
|
+
debug(_chalk().default.red(`Error adding react-native core autolinking sources for ios.\n${e}`));
|
|
156
252
|
return [];
|
|
157
253
|
}
|
|
158
254
|
}
|
|
159
|
-
async function parseCoreAutolinkingSourcesAsync({ config, reasons, contentsId, platform, }) {
|
|
160
|
-
const logTag = platform
|
|
161
|
-
? `react-native core autolinking dir for ${platform}`
|
|
162
|
-
: 'react-native core autolinking dir';
|
|
255
|
+
async function parseCoreAutolinkingSourcesAsync({ config, reasons, contentsId, platform, nativeModuleSourceType }) {
|
|
256
|
+
const logTag = platform ? `react-native core autolinking dir for ${platform}` : 'react-native core autolinking dir';
|
|
163
257
|
const results = [];
|
|
164
|
-
const root = await (0,
|
|
258
|
+
const root = await (0, _Utils.maybeGetRealPathAsync)(config.root);
|
|
165
259
|
const autolinkingConfig = {};
|
|
166
|
-
for (const [depName, depData] of Object.entries(config.dependencies))
|
|
260
|
+
for (const [depName, depData] of Object.entries(config.dependencies)){
|
|
167
261
|
try {
|
|
168
262
|
stripRncoreAutolinkingAbsolutePaths(depData, root);
|
|
169
|
-
const filePath = (0,
|
|
170
|
-
debug(`Adding ${logTag} - ${
|
|
171
|
-
results.push(
|
|
263
|
+
const filePath = (0, _Path.toPosixPath)(depData.root);
|
|
264
|
+
debug(`Adding ${logTag} - ${_chalk().default.dim(filePath)}`);
|
|
265
|
+
results.push(await (0, _Utils.createAutolinkingHashSourceAsync)(root, filePath, reasons, nativeModuleSourceType));
|
|
172
266
|
autolinkingConfig[depName] = depData;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
debug(chalk_1.default.red(`Error adding ${logTag} - ${depName}.\n${e}`));
|
|
267
|
+
} catch (e) {
|
|
268
|
+
debug(_chalk().default.red(`Error adding ${logTag} - ${depName}.\n${e}`));
|
|
176
269
|
}
|
|
177
270
|
}
|
|
178
271
|
results.push({
|
|
179
272
|
type: 'contents',
|
|
180
273
|
id: contentsId,
|
|
181
274
|
contents: JSON.stringify(autolinkingConfig),
|
|
182
|
-
reasons
|
|
275
|
+
reasons
|
|
183
276
|
});
|
|
184
277
|
return results;
|
|
185
278
|
}
|
|
186
279
|
function stripRncoreAutolinkingAbsolutePaths(dependency, root) {
|
|
187
|
-
(0,
|
|
280
|
+
(0, _assert().default)(dependency.root);
|
|
188
281
|
const dependencyRoot = dependency.root;
|
|
189
|
-
const cmakeDepRoot =
|
|
190
|
-
dependency.root = (0,
|
|
191
|
-
for (const platformData of Object.values(dependency.platforms))
|
|
192
|
-
for (const [key, value] of Object.entries(platformData ?? {}))
|
|
282
|
+
const cmakeDepRoot = _nodeprocess().default.platform === 'win32' ? dependencyRoot.replace(/\\/g, '/') : dependencyRoot;
|
|
283
|
+
dependency.root = (0, _Path.toPosixPath)(_path().default.relative(root, dependencyRoot));
|
|
284
|
+
for (const platformData of Object.values(dependency.platforms)){
|
|
285
|
+
for (const [key, value] of Object.entries(platformData ?? {})){
|
|
193
286
|
let newValue;
|
|
194
|
-
if (
|
|
195
|
-
|
|
287
|
+
if (_nodeprocess().default.platform === 'win32' && [
|
|
288
|
+
'cmakeListsPath',
|
|
289
|
+
'cxxModuleCMakeListsPath'
|
|
290
|
+
].includes(key)) {
|
|
196
291
|
// CMake paths on Windows are serving in slashes,
|
|
197
292
|
// we have to check startsWith with the same slashes.
|
|
198
|
-
newValue = value?.startsWith?.(cmakeDepRoot)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
newValue = value?.startsWith?.(dependencyRoot)
|
|
204
|
-
? (0, Path_1.toPosixPath)(path_1.default.relative(root, value))
|
|
205
|
-
: value;
|
|
293
|
+
newValue = value?.startsWith?.(cmakeDepRoot) ? (0, _Path.toPosixPath)(_path().default.relative(root, value)) : value;
|
|
294
|
+
} else {
|
|
295
|
+
newValue = value?.startsWith?.(dependencyRoot) ? (0, _Path.toPosixPath)(_path().default.relative(root, value)) : value;
|
|
206
296
|
}
|
|
207
297
|
platformData[key] = newValue;
|
|
208
298
|
}
|
|
209
299
|
}
|
|
210
300
|
}
|
|
211
301
|
function normalizePackageJsonScriptSources(scripts, options) {
|
|
212
|
-
if (options.sourceSkips &
|
|
302
|
+
if (options.sourceSkips & _SourceSkips.SourceSkips.PackageJsonAndroidAndIosScriptsIfNotContainRun) {
|
|
213
303
|
// Replicate the behavior of `expo prebuild`
|
|
214
304
|
if (!scripts.android?.includes('run') || scripts.android === 'expo run:android') {
|
|
215
305
|
delete scripts.android;
|
|
@@ -220,4 +310,5 @@ function normalizePackageJsonScriptSources(scripts, options) {
|
|
|
220
310
|
}
|
|
221
311
|
return JSON.stringify(scripts);
|
|
222
312
|
}
|
|
223
|
-
|
|
313
|
+
|
|
314
|
+
//# sourceMappingURL=Bare.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["sourcer/Bare.ts"],"sourcesContent":[null],"names":["getBareAndroidSourcesAsync","getBareIosSourcesAsync","getCoreAutolinkingSourcesFromExpoAndroid","getCoreAutolinkingSourcesFromExpoIos","getCoreAutolinkingSourcesFromRncCliAsync","getGitIgnoreSourcesAsync","getPackageJsonScriptSourcesAsync","debug","require","projectRoot","options","platforms","includes","result","getFileBasedHashSourceAsync","chalk","dim","sourceSkips","SourceSkips","PackageJsonScriptsAll","packageJson","resolveFrom","path","resolve","e","results","scripts","id","push","type","contents","normalizePackageJsonScriptSources","reasons","GitIgnore","useRNCoreAutolinkingFromExpo","stdout","spawnAsync","cwd","env","getOriginalEnv","config","JSON","parse","parseCoreAutolinkingSourcesAsync","contentsId","nativeModuleSourceType","red","args","resolveExpoAutolinkingCliPath","platform","logTag","root","maybeGetRealPathAsync","autolinkingConfig","depName","depData","Object","entries","dependencies","stripRncoreAutolinkingAbsolutePaths","filePath","toPosixPath","createAutolinkingHashSourceAsync","stringify","dependency","assert","dependencyRoot","cmakeDepRoot","process","replace","relative","platformData","values","key","value","newValue","startsWith","PackageJsonAndroidAndIosScriptsIfNotContainRun","android","ios"],"mappings":";;;;;;;;;;;;;;;;;;;;QAoBsBA;eAAAA;;QAcAC;eAAAA;;QAiFAC;eAAAA;;QAmCAC;eAAAA;;QA9DAC;eAAAA;;QAZAC;eAAAA;;QA5BAC;eAAAA;;;;yBAhDS;;;;;;;gEACR;;;;;;;gEACJ;;;;;;;gEACD;;;;;;;gEACE;;;;;;;gEACH;;;;;;;gEACO;;;;;;8BAEsB;sBAElB;6BACA;uBAKrB;;;;;;AAEP,MAAMC,QAAQC,QAAQ,SAAS;AAExB,eAAeR,2BACpBS,WAAmB,EACnBC,OAA0B;IAE1B,IAAIA,QAAQC,SAAS,CAACC,QAAQ,CAAC,YAAY;QACzC,MAAMC,SAAS,MAAMC,IAAAA,kCAA2B,EAACL,aAAa,WAAW;QACzE,IAAII,UAAU,MAAM;YAClBN,MAAM,CAAC,yBAAyB,EAAEQ,gBAAK,CAACC,GAAG,CAAC,YAAY;YACxD,OAAO;gBAACH;aAAO;QACjB;IACF;IACA,OAAO,EAAE;AACX;AAEO,eAAeZ,uBACpBQ,WAAmB,EACnBC,OAA0B;IAE1B,IAAIA,Q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GE;QACtB;IACF;AACF;AAEA,SAAS5C,kCACPL,OAA+B,EAC/BhB,OAA0B;IAE1B,IAAIA,QAAQO,WAAW,GAAGC,wBAAW,CAAC2D,8CAA8C,EAAE;QACpF,4CAA4C;QAC5C,IAAI,CAACnD,QAAQoD,OAAO,EAAElE,SAAS,UAAUc,QAAQoD,OAAO,KAAK,oBAAoB;YAC/E,OAAOpD,QAAQoD,OAAO;QACxB;QACA,IAAI,CAACpD,QAAQqD,GAAG,EAAEnE,SAAS,UAAUc,QAAQqD,GAAG,KAAK,gBAAgB;YACnE,OAAOrD,QAAQqD,GAAG;QACpB;IACF;IACA,OAAOtC,KAAKsB,SAAS,CAACrC;AACxB"}
|
package/build/sourcer/Expo.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { ExpoConfig, ProjectConfig } from 'expo/config';
|
|
1
|
+
import type { ExpoConfig, ProjectConfig } from '@expo/config';
|
|
2
|
+
import type { LoadedModuleSource } from '../ExpoConfigLoader';
|
|
2
3
|
import type { HashSource, NormalizedOptions } from '../Fingerprint.types';
|
|
3
|
-
export declare function getExpoConfigSourcesAsync(projectRoot: string, config: ProjectConfig | null, loadedModules:
|
|
4
|
+
export declare function getExpoConfigSourcesAsync(projectRoot: string, config: ProjectConfig | null, loadedModules: LoadedModuleSource[] | null, options: NormalizedOptions): Promise<HashSource[]>;
|
|
4
5
|
export declare function createHashSourceExternalFileAsync({ projectRoot, file, reason, }: {
|
|
5
6
|
projectRoot: string;
|
|
6
7
|
file: string;
|