@gfean/react-native-bundle-drop 0.9.0 → 0.11.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/BundleDrop.podspec +17 -20
- package/README.md +77 -1
- package/android/build.gradle +4 -0
- package/android/src/main/java/com/bundledrop/BundleDropFileOps.kt +20 -0
- package/android/src/main/java/com/bundledrop/BundleDropModule.kt +4 -1
- package/android/src/main/java/com/bundledrop/BundleDropNativePaths.kt +5 -1
- package/docs/native-fingerprint.md +211 -0
- package/expo/android/build.gradle +61 -56
- package/ios/BundleDropLocator.swift +12 -0
- package/ios/BundleDropModule.swift +31 -13
- package/ios/BundleDropReactContent.swift +54 -0
- package/ios/BundleDropStartupRecovery.swift +48 -2
- package/ios/BundleDropStartupRecoveryAdapter.swift +87 -30
- package/lib/CLI/cli.js +12 -0
- package/lib/CLI/scripts/doctor.js +18 -7
- package/lib/CLI/scripts/expo/configure-expo.js +8 -3
- package/lib/CLI/scripts/fingerprint-cli.d.ts +12 -0
- package/lib/CLI/scripts/fingerprint-cli.js +36 -0
- package/lib/CLI/scripts/native/write-runtime-identity.js +3 -1
- package/lib/CLI/scripts/sight-ota.js +12 -3
- package/lib/CLI/scripts/upload-cli.d.ts +3 -0
- package/lib/CLI/scripts/upload-cli.js +239 -107
- package/lib/context.js +9 -1
- package/lib/errors.d.ts +2 -1
- package/lib/errors.js +2 -1
- package/lib/expo/buildIdentity.d.ts +1 -1
- package/lib/expo/buildIdentity.js +3 -0
- package/lib/expo/runtimeVersion.d.ts +10 -0
- package/lib/expo/runtimeVersion.js +11 -9
- package/lib/fingerprint/client.d.ts +5 -0
- package/lib/fingerprint/client.js +21 -0
- package/lib/fingerprint/collect.d.ts +3 -0
- package/lib/fingerprint/collect.js +116 -0
- package/lib/fingerprint/config.d.ts +14 -0
- package/lib/fingerprint/config.js +60 -0
- package/lib/fingerprint/normalizeBuildNumber.d.ts +4 -0
- package/lib/fingerprint/normalizeBuildNumber.js +55 -0
- package/lib/fingerprint/normalizeIosBuildNumber.d.ts +4 -0
- package/lib/fingerprint/normalizeIosBuildNumber.js +62 -0
- package/lib/fingerprint/types.d.ts +29 -0
- package/lib/fingerprint/types.js +2 -0
- package/lib/fingerprint/worker.d.ts +1 -0
- package/lib/fingerprint/worker.js +24 -0
- package/lib/fs/installedReportHistory.d.ts +2 -0
- package/lib/fs/installedReportHistory.js +55 -0
- package/lib/loadConfig.d.ts +6 -2
- package/lib/manager/downloadAndInstall.d.ts +1 -0
- package/lib/manager/downloadAndInstall.js +4 -0
- package/lib/manager/pendingRollback.d.ts +11 -0
- package/lib/manager/pendingRollback.js +54 -0
- package/lib/manager/reporting.d.ts +1 -0
- package/lib/manager/reporting.js +23 -6
- package/lib/manager/updateState.d.ts +3 -0
- package/lib/manager/updateState.js +1 -0
- package/lib/metro.js +3 -0
- package/lib/native/bundleDropNative.d.ts +2 -0
- package/lib/native/bundleDropNative.js +15 -5
- package/lib/patch-engine/installFromPatchSet.js +1 -1
- package/lib/patch-engine/patchTransport.d.ts +2 -1
- package/lib/patch-engine/patchTransport.js +4 -2
- package/lib/runtime/service.d.ts +2 -1
- package/lib/runtime/service.js +77 -22
- package/lib/scripts/bundle.js +10 -0
- package/lib/scripts/canonicalArtifact.d.ts +3 -0
- package/lib/scripts/canonicalArtifact.js +3 -1
- package/lib/scripts/exportProject.js +11 -0
- package/lib/scripts/nativeBuildNumber.d.ts +9 -0
- package/lib/scripts/nativeBuildNumber.js +110 -0
- package/lib/scripts/runtimeCompatibilityMetadata.d.ts +10 -0
- package/lib/scripts/runtimeCompatibilityMetadata.js +13 -0
- package/package.json +26 -12
- package/third_party/expo-fingerprint/LICENSE +22 -0
- package/third_party/expo-fingerprint/NOTICE +5 -0
- package/third_party/expo-fingerprint/PROVENANCE.md +41 -0
- package/third_party/expo-fingerprint/build/Config.js +122 -0
- package/third_party/expo-fingerprint/build/Dedup.js +89 -0
- package/third_party/expo-fingerprint/build/ExpoConfig.js +93 -0
- package/third_party/expo-fingerprint/build/ExpoConfigLoader.js +201 -0
- package/third_party/expo-fingerprint/build/ExpoResolver.js +84 -0
- package/third_party/expo-fingerprint/build/Fingerprint.js +111 -0
- package/third_party/expo-fingerprint/build/Fingerprint.types.js +3 -0
- package/third_party/expo-fingerprint/build/Options.js +140 -0
- package/third_party/expo-fingerprint/build/Presets.js +62 -0
- package/third_party/expo-fingerprint/build/ProjectWorkflow.js +163 -0
- package/third_party/expo-fingerprint/build/Sort.js +46 -0
- package/third_party/expo-fingerprint/build/hash/FileHookTransform.js +42 -0
- package/third_party/expo-fingerprint/build/hash/Hash.js +264 -0
- package/third_party/expo-fingerprint/build/hash/ReactImportsPatcher.js +344 -0
- package/third_party/expo-fingerprint/build/index.js +23 -0
- package/third_party/expo-fingerprint/build/sourcer/AutolinkingConfig.js +130 -0
- package/third_party/expo-fingerprint/build/sourcer/Bare.js +231 -0
- package/third_party/expo-fingerprint/build/sourcer/Expo.js +376 -0
- package/third_party/expo-fingerprint/build/sourcer/Packages.js +54 -0
- package/third_party/expo-fingerprint/build/sourcer/PatchPackage.js +22 -0
- package/third_party/expo-fingerprint/build/sourcer/SourceSkips.js +79 -0
- package/third_party/expo-fingerprint/build/sourcer/Sourcer.js +58 -0
- package/third_party/expo-fingerprint/build/sourcer/Utils.js +129 -0
- package/third_party/expo-fingerprint/build/types/module.d.js +2 -0
- package/third_party/expo-fingerprint/build/utils/Concurrency.js +47 -0
- package/third_party/expo-fingerprint/build/utils/Env.js +28 -0
- package/third_party/expo-fingerprint/build/utils/Path.js +161 -0
- package/third_party/expo-fingerprint/build/utils/Predicates.js +6 -0
- package/third_party/expo-fingerprint/build/utils/Profile.js +41 -0
- package/third_party/expo-fingerprint/build/utils/Spawn.js +38 -0
- package/third_party/expo-fingerprint/build/utils/SpawnIPC.js +28 -0
- package/third_party/expo-fingerprint/scheme-1-contract.json +132 -0
- package/third_party/expo-fingerprint/upstream-files.json +37 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfean/react-native-bundle-drop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"nativeVersion": "0.6.
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"nativeVersion": "0.6.4",
|
|
5
5
|
"description": "Over-the-air updates for Expo and bare React Native apps, with channels, staged rollouts, patch delivery, and rollback.",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"clean": "rimraf lib dist",
|
|
39
|
-
"build": "npm run clean && tsc -p tsconfig.build.json && node scripts/make-cli-executable.js",
|
|
39
|
+
"build": "npm run clean && tsc -p tsconfig.build.json && node scripts/build-fingerprint.cjs && node scripts/make-cli-executable.js",
|
|
40
40
|
"test": "jest --runInBand",
|
|
41
41
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
42
42
|
"test:cli:compat": "node scripts/check-cli-compatibility.cjs",
|
|
@@ -52,16 +52,17 @@
|
|
|
52
52
|
"codeql:local:fast": "node scripts/run-codeql-local.cjs fast",
|
|
53
53
|
"codeql:local:full": "node scripts/run-codeql-local.cjs full",
|
|
54
54
|
"codeql:local:compare": "node scripts/run-codeql-local.cjs compare",
|
|
55
|
-
"verify:quick": "yarn typecheck && yarn build && yarn coverage:gate && yarn test:expo:plugin && yarn package:check",
|
|
55
|
+
"verify:quick": "yarn typecheck && yarn build && yarn fingerprint:check && yarn coverage:gate && yarn test:expo:plugin && yarn package:check",
|
|
56
56
|
"verify:native": "yarn test:android && yarn test:ios",
|
|
57
57
|
"verify:release": "yarn verify:quick && yarn verify:native && yarn audit:production",
|
|
58
58
|
"prepack": "npm run build",
|
|
59
|
-
"prepublishOnly": "npm run verify:release"
|
|
59
|
+
"prepublishOnly": "npm run verify:release",
|
|
60
|
+
"fingerprint:check": "node scripts/check-fingerprint-contract.cjs"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@types/adm-zip": "^0.
|
|
63
|
+
"@types/adm-zip": "^0.6.0",
|
|
63
64
|
"@types/jest": "^29.5.14",
|
|
64
|
-
"@types/node": "^24.
|
|
65
|
+
"@types/node": "^24.19.2",
|
|
65
66
|
"@types/react": "^18.2.66",
|
|
66
67
|
"@types/react-native": "^0.73.0",
|
|
67
68
|
"expo-autolinking-sdk55": "npm:expo-modules-autolinking@55.0.8",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"react-test-renderer": "^18.3.1",
|
|
74
75
|
"rimraf": "^6.1.3",
|
|
75
76
|
"rn-cli-platform-android-078": "npm:@react-native-community/cli-platform-android@15.0.1",
|
|
76
|
-
"ts-jest": "^29.4.
|
|
77
|
+
"ts-jest": "^29.4.15",
|
|
77
78
|
"ts-node": "^10.9.2",
|
|
78
79
|
"typescript": "^5.9.3"
|
|
79
80
|
},
|
|
@@ -88,6 +89,11 @@
|
|
|
88
89
|
"ios/*.{m,h,mm,swift}",
|
|
89
90
|
"third_party/xdelta/NOTICE",
|
|
90
91
|
"third_party/xdelta/PROVENANCE.md",
|
|
92
|
+
"third_party/expo-fingerprint/build/**",
|
|
93
|
+
"third_party/expo-fingerprint/LICENSE",
|
|
94
|
+
"third_party/expo-fingerprint/NOTICE",
|
|
95
|
+
"third_party/expo-fingerprint/PROVENANCE.md",
|
|
96
|
+
"third_party/expo-fingerprint/upstream-files.json",
|
|
91
97
|
"third_party/xdelta/bundle_drop_xdelta.c",
|
|
92
98
|
"third_party/xdelta/bundle_drop_xdelta.h",
|
|
93
99
|
"third_party/xdelta/xdelta3/LICENSE",
|
|
@@ -112,7 +118,9 @@
|
|
|
112
118
|
"expo/bundle-drop-expo-gradle-plugin/build.gradle",
|
|
113
119
|
"expo/bundle-drop-expo-gradle-plugin/src/main/**",
|
|
114
120
|
"expo/ios/Sources/**",
|
|
115
|
-
"README.md"
|
|
121
|
+
"README.md",
|
|
122
|
+
"third_party/expo-fingerprint/scheme-1-contract.json",
|
|
123
|
+
"docs/native-fingerprint.md"
|
|
116
124
|
],
|
|
117
125
|
"keywords": [
|
|
118
126
|
"react-native",
|
|
@@ -172,15 +180,21 @@
|
|
|
172
180
|
},
|
|
173
181
|
"dependencies": {
|
|
174
182
|
"adm-zip": "0.6.1",
|
|
175
|
-
"axios": "1.
|
|
183
|
+
"axios": "1.21.0",
|
|
176
184
|
"chalk": "4.1.2",
|
|
177
185
|
"commander": "14.0.3",
|
|
186
|
+
"debug": "4.4.3",
|
|
178
187
|
"diff": "9.0.0",
|
|
179
188
|
"figures": "3.2.0",
|
|
180
189
|
"form-data": "4.0.6",
|
|
181
|
-
"fs-extra": "11.4.
|
|
190
|
+
"fs-extra": "11.4.1",
|
|
191
|
+
"glob": "14.0.3",
|
|
192
|
+
"ignore": "5.3.2",
|
|
193
|
+
"minimatch": "11.0.3",
|
|
182
194
|
"plist": "5.0.0",
|
|
183
|
-
"prompts": "2.4.2"
|
|
195
|
+
"prompts": "2.4.2",
|
|
196
|
+
"resolve-from": "5.0.0",
|
|
197
|
+
"semver": "7.7.4"
|
|
184
198
|
},
|
|
185
199
|
"publishConfig": {
|
|
186
200
|
"access": "public"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Contains source adapted from @expo/fingerprint 0.21.5, Expo commit
|
|
2
|
+
d7a68affbace544d36250aa6bdb06e34bda9e8ea.
|
|
3
|
+
Copyright (c) 2015-present 650 Industries, Inc. (aka Expo).
|
|
4
|
+
Licensed under the MIT License; see LICENSE.
|
|
5
|
+
Bundle Drop modifications are documented in PROVENANCE.md.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Pinned Expo fingerprint adaptation — scheme 1
|
|
2
|
+
|
|
3
|
+
- Upstream: https://github.com/expo/expo/tree/d7a68affbace544d36250aa6bdb06e34bda9e8ea/packages/%40expo/fingerprint
|
|
4
|
+
- Package: `@expo/fingerprint` 0.21.5, MIT.
|
|
5
|
+
- `upstream-files.json` records original file SHA-256 values before adaptation.
|
|
6
|
+
- `src/` is maintained source; `scripts/build-fingerprint.cjs` produces packaged `build/` files.
|
|
7
|
+
|
|
8
|
+
This is Bundle Drop scheme 1, not an Expo-compatible hash. Its complete calculation
|
|
9
|
+
contract is frozen in `scheme-1-contract.json`. Version 0.11.0 revises the
|
|
10
|
+
pre-release baseline for patched matching dependencies. Earlier Beta calculators
|
|
11
|
+
are not interchangeable; existing Beta apps must be rebuilt with matching build
|
|
12
|
+
and upload tooling. Subsequent calculation changes require a new scheme with
|
|
13
|
+
retained scheme 1 behavior.
|
|
14
|
+
See `docs/native-fingerprint.md` for supported inputs and validation limitations.
|
|
15
|
+
|
|
16
|
+
Adaptations:
|
|
17
|
+
- Node subprocess/environment adapters replace direct Expo utility dependencies.
|
|
18
|
+
- Expo config evaluates in the selected production/development environment rather than forcing development.
|
|
19
|
+
- Executed required config/autolinking collectors fail instead of returning an empty source set.
|
|
20
|
+
- React Native CLI resolves from the installed project; collection never installs a CLI via npx.
|
|
21
|
+
- Bundle Drop owns options and extra sources; `fingerprint.config.js` is not an alternate authority.
|
|
22
|
+
- Stable codepoint sorting replaces locale-sensitive ordering.
|
|
23
|
+
- The config-plugin capture ignores the JS-only `resolve-from` utility alongside
|
|
24
|
+
upstream's existing tooling exclusions. An external upgraded CLI otherwise
|
|
25
|
+
captures a project copy that an in-project CLI has already preloaded, producing
|
|
26
|
+
different inputs for the same project. Evaluated config and actual plugin
|
|
27
|
+
sources remain hashed; no native package source is removed by this correction.
|
|
28
|
+
- Generic calculation dependencies are exact versions in `package.json` with the
|
|
29
|
+
complete resolution in `yarn.lock`. The revised pre-release baseline uses
|
|
30
|
+
minimatch 11.0.3 and glob 14.0.3 for GHSA-g3hv-75wg-m249 and
|
|
31
|
+
GHSA-3g3m-2fjr-6pw4. This intentionally adopts their updated matching semantics,
|
|
32
|
+
including multi-globstar and empty trailing extglob behavior.
|
|
33
|
+
|
|
34
|
+
Input selection, build-number normalization, exclusions, and effective identity
|
|
35
|
+
construction live in the first-party `src/fingerprint/` modules and must be
|
|
36
|
+
versioned together with this adaptation and its supporting dependencies.
|
|
37
|
+
|
|
38
|
+
Inherited limitations remain: this slice does not resolve Gradle artifacts,
|
|
39
|
+
scan installed Pods/SwiftPM sources, interpret arbitrary build scripts, or
|
|
40
|
+
materialize CNG native projections. Name/version-only React Native identity is
|
|
41
|
+
not proof against an in-place React Native core patch.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.loadConfigAsync = loadConfigAsync;
|
|
7
|
+
exports.normalizeSourceSkips = normalizeSourceSkips;
|
|
8
|
+
const promises_1 = __importDefault(require("fs/promises"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const SourceSkips_1 = require("./sourcer/SourceSkips");
|
|
11
|
+
const CONFIG_FILES = ['fingerprint.config.js', 'fingerprint.config.cjs'];
|
|
12
|
+
const debug = require('debug')('expo:fingerprint:Config');
|
|
13
|
+
/**
|
|
14
|
+
* Load the fingerprint.config.js from project root.
|
|
15
|
+
* @param projectRoot The project root directory.
|
|
16
|
+
* @param silent Whether to mute console logs when loading the config. This is useful for expo-updates integration and makes sure the JSON output is valid.
|
|
17
|
+
* @returns The loaded config or null if no config file was found.
|
|
18
|
+
*/
|
|
19
|
+
async function loadConfigAsync(projectRoot, silent = false) {
|
|
20
|
+
let configFile;
|
|
21
|
+
try {
|
|
22
|
+
configFile = await resolveConfigFileAsync(projectRoot);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
debug('Resolved config file:', configFile);
|
|
28
|
+
const unregisterMuteLogs = silent ? muteLogs() : null;
|
|
29
|
+
let rawConfig;
|
|
30
|
+
try {
|
|
31
|
+
rawConfig = require(configFile);
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
debug('Error loading config file:', e);
|
|
35
|
+
rawConfig = {};
|
|
36
|
+
}
|
|
37
|
+
unregisterMuteLogs?.();
|
|
38
|
+
const supportedConfigKeys = [
|
|
39
|
+
'preset',
|
|
40
|
+
'concurrentIoLimit',
|
|
41
|
+
'hashAlgorithm',
|
|
42
|
+
'ignorePaths',
|
|
43
|
+
'extraSources',
|
|
44
|
+
'sourceSkips',
|
|
45
|
+
'enableReactImportsPatcher',
|
|
46
|
+
'useRNCoreAutolinkingFromExpo',
|
|
47
|
+
'nativeModuleSourceType',
|
|
48
|
+
'configPluginSourceType',
|
|
49
|
+
'debug',
|
|
50
|
+
'fileHookTransform',
|
|
51
|
+
];
|
|
52
|
+
const config = {};
|
|
53
|
+
for (const key of supportedConfigKeys) {
|
|
54
|
+
if (key in rawConfig) {
|
|
55
|
+
if (key === 'sourceSkips') {
|
|
56
|
+
config[key] = normalizeSourceSkips(rawConfig[key]);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
config[key] = rawConfig[key];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return config;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Normalize the sourceSkips from enum number or string array to a valid enum number.
|
|
67
|
+
*/
|
|
68
|
+
function normalizeSourceSkips(sourceSkips) {
|
|
69
|
+
if (sourceSkips == null) {
|
|
70
|
+
return SourceSkips_1.SourceSkips.None;
|
|
71
|
+
}
|
|
72
|
+
if (typeof sourceSkips === 'number') {
|
|
73
|
+
return sourceSkips;
|
|
74
|
+
}
|
|
75
|
+
if (Array.isArray(sourceSkips)) {
|
|
76
|
+
let result = SourceSkips_1.SourceSkips.None;
|
|
77
|
+
for (const value of sourceSkips) {
|
|
78
|
+
if (typeof value !== 'string') {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const skipValue = SourceSkips_1.SourceSkips[value];
|
|
82
|
+
if (skipValue != null) {
|
|
83
|
+
result |= skipValue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
throw new Error(`Invalid sourceSkips type: ${sourceSkips}`);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Resolve the config file path from the project root.
|
|
92
|
+
*/
|
|
93
|
+
async function resolveConfigFileAsync(projectRoot) {
|
|
94
|
+
return await Promise.any(CONFIG_FILES.map(async (file) => {
|
|
95
|
+
const configPath = path_1.default.resolve(projectRoot, file);
|
|
96
|
+
const stat = await promises_1.default.stat(configPath);
|
|
97
|
+
if (!stat.isFile()) {
|
|
98
|
+
throw new Error(`Config file is not a file: ${configPath}`);
|
|
99
|
+
}
|
|
100
|
+
return configPath;
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Monkey-patch the console to mute logs.
|
|
105
|
+
* @returns A function to unregister the monkey-patch.
|
|
106
|
+
*/
|
|
107
|
+
function muteLogs() {
|
|
108
|
+
const originalConsole = {
|
|
109
|
+
log: console.log,
|
|
110
|
+
warn: console.warn,
|
|
111
|
+
error: console.error,
|
|
112
|
+
};
|
|
113
|
+
const unregister = () => {
|
|
114
|
+
console.log = originalConsole.log;
|
|
115
|
+
console.warn = originalConsole.warn;
|
|
116
|
+
console.error = originalConsole.error;
|
|
117
|
+
};
|
|
118
|
+
console.log = () => { };
|
|
119
|
+
console.warn = () => { };
|
|
120
|
+
console.error = () => { };
|
|
121
|
+
return unregister;
|
|
122
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.dedupSources = dedupSources;
|
|
7
|
+
exports.mergeSourceWithReasons = mergeSourceWithReasons;
|
|
8
|
+
const assert_1 = __importDefault(require("assert"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const debug = require('debug')('expo:fingerprint:Dedup');
|
|
11
|
+
/**
|
|
12
|
+
* Strip duplicated sources, mainly for duplicated file or dir
|
|
13
|
+
*/
|
|
14
|
+
function dedupSources(sources, projectRoot) {
|
|
15
|
+
const newSources = [];
|
|
16
|
+
for (const source of sources) {
|
|
17
|
+
const [duplicatedItemIndex, shouldSwapSource] = findDuplicatedSourceIndex(newSources, source, projectRoot);
|
|
18
|
+
const duplicatedItem = newSources[duplicatedItemIndex];
|
|
19
|
+
if (duplicatedItem != null) {
|
|
20
|
+
debug(`Skipping duplicated source: ${JSON.stringify(source)}`);
|
|
21
|
+
if (shouldSwapSource) {
|
|
22
|
+
newSources[duplicatedItemIndex] = {
|
|
23
|
+
...source,
|
|
24
|
+
reasons: [...source.reasons, ...duplicatedItem.reasons],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
duplicatedItem.reasons = [...duplicatedItem.reasons, ...source.reasons];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
newSources.push(source);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return newSources;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* When two sources are duplicated, merge `src`'s reasons into `dst`
|
|
39
|
+
*/
|
|
40
|
+
function mergeSourceWithReasons(dst, src) {
|
|
41
|
+
return dst;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Find the duplicated `source` in `newSources`
|
|
45
|
+
* @return tuple of [duplicatedItemIndexInNewSources, shouldSwapSource]
|
|
46
|
+
*/
|
|
47
|
+
function findDuplicatedSourceIndex(newSources, source, projectRoot) {
|
|
48
|
+
let shouldSwapSource = false;
|
|
49
|
+
if (source.type === 'contents') {
|
|
50
|
+
return [
|
|
51
|
+
newSources.findIndex((item) => item.type === source.type && item.id === source.id) ?? null,
|
|
52
|
+
shouldSwapSource,
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
if (source.type === 'package') {
|
|
56
|
+
const key = source.overrideHashKey ?? `${source.name}@${source.version}`;
|
|
57
|
+
return [
|
|
58
|
+
newSources.findIndex((item) => item.type === 'package' &&
|
|
59
|
+
(item.overrideHashKey ?? `${item.name}@${item.version}`) === key) ?? null,
|
|
60
|
+
shouldSwapSource,
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
for (const [index, existingSource] of newSources.entries()) {
|
|
64
|
+
if (existingSource.type === 'contents' || existingSource.type === 'package') {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if (isDescendant(source, existingSource, projectRoot)) {
|
|
68
|
+
return [index, shouldSwapSource];
|
|
69
|
+
}
|
|
70
|
+
// If the new source is ancestor of existing source, swap the existing source with the new source
|
|
71
|
+
if (isDescendant(existingSource, source, projectRoot)) {
|
|
72
|
+
shouldSwapSource = true;
|
|
73
|
+
return [index, shouldSwapSource];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return [-1, shouldSwapSource];
|
|
77
|
+
}
|
|
78
|
+
function isDescendant(from, to, projectRoot) {
|
|
79
|
+
if (from === to) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
const fromPath = path_1.default.join(projectRoot, from.filePath);
|
|
83
|
+
const toPath = path_1.default.join(projectRoot, to.filePath);
|
|
84
|
+
const result = path_1.default.relative(fromPath, toPath).match(/^[./\\/]*$/) != null;
|
|
85
|
+
if (result) {
|
|
86
|
+
(0, assert_1.default)(!(to.type === 'file' && from.type === 'dir'), `Unexpected case which a dir is a descendant of a file - from[${fromPath}] to[${toPath}]`);
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getExpoConfigAsync = getExpoConfigAsync;
|
|
7
|
+
exports.diffLoadedModules = diffLoadedModules;
|
|
8
|
+
const Env_1 = require("./utils/Env");
|
|
9
|
+
const promises_1 = __importDefault(require("fs/promises"));
|
|
10
|
+
const os_1 = __importDefault(require("os"));
|
|
11
|
+
const path_1 = __importDefault(require("path"));
|
|
12
|
+
const resolve_from_1 = __importDefault(require("resolve-from"));
|
|
13
|
+
const ExpoConfigLoader_1 = require("./ExpoConfigLoader");
|
|
14
|
+
const SpawnIPC_1 = require("./utils/SpawnIPC");
|
|
15
|
+
const FINGERPRINT_ENV_MODE = process.env.NODE_ENV === 'development' ? 'development' : 'production';
|
|
16
|
+
/**
|
|
17
|
+
* An out-of-process `expo/config` loader that can be used to get the Expo config and loaded modules.
|
|
18
|
+
*/
|
|
19
|
+
async function getExpoConfigAsync(projectRoot, options) {
|
|
20
|
+
const result = {
|
|
21
|
+
config: null,
|
|
22
|
+
loadedModules: null,
|
|
23
|
+
};
|
|
24
|
+
if (!resolve_from_1.default.silent(path_1.default.resolve(projectRoot), 'expo/config')) {
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
const tmpDir = await promises_1.default.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'expo-fingerprint-'));
|
|
28
|
+
const ignoredFile = await createTempIgnoredFileAsync(tmpDir, options);
|
|
29
|
+
try {
|
|
30
|
+
const [{ config, loadedModules: modulesWithPlugins }, { loadedModules: modulesWithoutPlugins },] = await Promise.all([
|
|
31
|
+
spawnConfigLoaderAsync(projectRoot, ignoredFile, /* skipPlugins */ false),
|
|
32
|
+
spawnConfigLoaderAsync(projectRoot, ignoredFile, /* skipPlugins */ true),
|
|
33
|
+
]);
|
|
34
|
+
result.config = config;
|
|
35
|
+
result.loadedModules = diffLoadedModules(modulesWithPlugins ?? [], modulesWithoutPlugins ?? []);
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
throw e;
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
try {
|
|
42
|
+
await promises_1.default.rm(tmpDir, { recursive: true });
|
|
43
|
+
}
|
|
44
|
+
catch { }
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
async function spawnConfigLoaderAsync(projectRoot, ignoredFile, skipPlugins) {
|
|
49
|
+
const args = [
|
|
50
|
+
(0, ExpoConfigLoader_1.getExpoConfigLoaderPath)(),
|
|
51
|
+
path_1.default.resolve(projectRoot),
|
|
52
|
+
ignoredFile,
|
|
53
|
+
'--mode',
|
|
54
|
+
FINGERPRINT_ENV_MODE,
|
|
55
|
+
];
|
|
56
|
+
if (skipPlugins) {
|
|
57
|
+
args.push('--skipPlugins');
|
|
58
|
+
}
|
|
59
|
+
const childEnv = (0, Env_1.setNodeEnv)(FINGERPRINT_ENV_MODE, { systemEnv: (0, Env_1.getOriginalEnv)() });
|
|
60
|
+
childEnv.__EXPO_CONFIG_MODE = FINGERPRINT_ENV_MODE;
|
|
61
|
+
const { message } = await (0, SpawnIPC_1.spawnWithIpcAsync)('node', args, { cwd: projectRoot, env: childEnv });
|
|
62
|
+
return JSON.parse(message);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Keep only the config-plugin modules attributable to applying plugins.
|
|
66
|
+
*
|
|
67
|
+
* Anything that also loads when plugins are skipped is the config-loading framework and is dropped.
|
|
68
|
+
* In-repo files are always kept regardless of the diff, so a local plugin imported at the top of
|
|
69
|
+
* `app.config` (which loads during config evaluation, not plugin application) is never lost.
|
|
70
|
+
*/
|
|
71
|
+
function diffLoadedModules(withPlugins, withoutPlugins) {
|
|
72
|
+
const skippedKeys = new Set(withoutPlugins.map(getLoadedModuleKey));
|
|
73
|
+
return withPlugins.filter((source) => isInRepoLoadedModule(source) || !skippedKeys.has(getLoadedModuleKey(source)));
|
|
74
|
+
}
|
|
75
|
+
/** Stable identity of a loaded module: its file path, or its id for a virtual module. */
|
|
76
|
+
function getLoadedModuleKey(source) {
|
|
77
|
+
return source.type === 'file' ? source.path : source.id;
|
|
78
|
+
}
|
|
79
|
+
/** Whether a loaded module is a project-local file (e.g. a local config plugin) rather than a dependency. */
|
|
80
|
+
function isInRepoLoadedModule(source) {
|
|
81
|
+
const key = getLoadedModuleKey(source);
|
|
82
|
+
// `..` means the path escaped the project root (e.g. a hoisted or linked dependency).
|
|
83
|
+
return !key.startsWith('..') && !key.includes('node_modules');
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Create a temporary file with ignored paths from options that will be read by the ExpoConfigLoader.
|
|
87
|
+
*/
|
|
88
|
+
async function createTempIgnoredFileAsync(tmpDir, options) {
|
|
89
|
+
const ignoredFile = path_1.default.join(tmpDir, '.fingerprintignore');
|
|
90
|
+
const ignorePaths = options.ignorePathMatchObjects.map((match) => match.pattern);
|
|
91
|
+
await promises_1.default.writeFile(ignoredFile, ignorePaths.join('\n'));
|
|
92
|
+
return ignoredFile;
|
|
93
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A helper script to load the Expo config and loaded plugins from a project
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.installModuleCaptureHook = installModuleCaptureHook;
|
|
10
|
+
exports.resolveLoadedModuleSourcesAsync = resolveLoadedModuleSourcesAsync;
|
|
11
|
+
exports.getExpoConfigLoaderPath = getExpoConfigLoaderPath;
|
|
12
|
+
const Env_1 = require("./utils/Env");
|
|
13
|
+
const promises_1 = __importDefault(require("fs/promises"));
|
|
14
|
+
const module_1 = __importDefault(require("module"));
|
|
15
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
16
|
+
const path_1 = __importDefault(require("path"));
|
|
17
|
+
const resolve_from_1 = __importDefault(require("resolve-from"));
|
|
18
|
+
const Options_1 = require("./Options");
|
|
19
|
+
const Path_1 = require("./utils/Path");
|
|
20
|
+
async function runAsync(programName, args = []) {
|
|
21
|
+
if (args[0] == null) {
|
|
22
|
+
console.log(`Usage: ${programName} <projectRoot> [ignoredFile] --mode <development|production> [--skipPlugins]`);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const projectRoot = path_1.default.resolve(args[0]);
|
|
26
|
+
const skipPlugins = args.includes('--skipPlugins');
|
|
27
|
+
const ignoredFileArg = args[1] && !args[1].startsWith('--') ? args[1] : null;
|
|
28
|
+
const ignoredFile = ignoredFileArg ? path_1.default.resolve(ignoredFileArg) : null;
|
|
29
|
+
const modeFlagIndex = args.indexOf('--mode');
|
|
30
|
+
const mode = modeFlagIndex >= 0 ? args[modeFlagIndex + 1] : undefined;
|
|
31
|
+
if (mode !== 'development' && mode !== 'production') {
|
|
32
|
+
throw new Error(`Unsupported Expo config mode: ${mode}`);
|
|
33
|
+
}
|
|
34
|
+
globalThis.__DEV__ = mode === 'development';
|
|
35
|
+
(0, Env_1.loadProjectEnv)(projectRoot, { mode });
|
|
36
|
+
const { getCapturedModules, uninstall } = installModuleCaptureHook();
|
|
37
|
+
let config;
|
|
38
|
+
try {
|
|
39
|
+
const { getConfig } = require((0, resolve_from_1.default)(path_1.default.resolve(projectRoot), 'expo/config'));
|
|
40
|
+
config = await getConfig(projectRoot, {
|
|
41
|
+
skipSDKVersionRequirement: true,
|
|
42
|
+
skipPlugins,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
uninstall();
|
|
47
|
+
}
|
|
48
|
+
const ignoredPaths = [
|
|
49
|
+
...DEFAULT_CONFIG_LOADING_IGNORE_PATHS,
|
|
50
|
+
...(await loadIgnoredPathsAsync(ignoredFile)),
|
|
51
|
+
];
|
|
52
|
+
const loadedModules = await resolveLoadedModuleSourcesAsync(getCapturedModules(), projectRoot, ignoredPaths);
|
|
53
|
+
const result = JSON.stringify({
|
|
54
|
+
// The plugins-skipped pass only contributes its module list to the diff; its config is unused.
|
|
55
|
+
config: skipPlugins ? null : config,
|
|
56
|
+
loadedModules,
|
|
57
|
+
});
|
|
58
|
+
if (node_process_1.default.send) {
|
|
59
|
+
node_process_1.default.send(result);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
console.log(result);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// If running from the command line
|
|
66
|
+
if (require.main?.filename === __filename) {
|
|
67
|
+
(async () => {
|
|
68
|
+
const programIndex = node_process_1.default.argv.findIndex((arg) => arg === __filename);
|
|
69
|
+
const programName = node_process_1.default.argv[programIndex] ?? __filename;
|
|
70
|
+
try {
|
|
71
|
+
await runAsync(programName, node_process_1.default.argv.slice(programIndex + 1));
|
|
72
|
+
}
|
|
73
|
+
catch (e) {
|
|
74
|
+
console.error('Uncaught Error', e);
|
|
75
|
+
node_process_1.default.exit(1);
|
|
76
|
+
}
|
|
77
|
+
})();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Load the generated ignored paths file from caller and remove the file after loading
|
|
81
|
+
*/
|
|
82
|
+
async function loadIgnoredPathsAsync(ignoredFile) {
|
|
83
|
+
if (!ignoredFile) {
|
|
84
|
+
return Options_1.DEFAULT_IGNORE_PATHS;
|
|
85
|
+
}
|
|
86
|
+
const ignorePaths = [];
|
|
87
|
+
try {
|
|
88
|
+
const fingerprintIgnore = await promises_1.default.readFile(ignoredFile, 'utf8');
|
|
89
|
+
const fingerprintIgnoreLines = fingerprintIgnore.split('\n');
|
|
90
|
+
for (const line of fingerprintIgnoreLines) {
|
|
91
|
+
const trimmedLine = line.trim();
|
|
92
|
+
if (trimmedLine) {
|
|
93
|
+
ignorePaths.push(trimmedLine);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch { }
|
|
98
|
+
return ignorePaths;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Observe every CommonJS module compiled while the hook is installed.
|
|
102
|
+
* We hook `Module.prototype._compile` to keep each module's authoritative filename and source
|
|
103
|
+
* content. Every argument is forwarded: Node 22.18+ passes a `format` argument that tells it to
|
|
104
|
+
* strip types from a `.ts` file.
|
|
105
|
+
*/
|
|
106
|
+
function installModuleCaptureHook() {
|
|
107
|
+
const moduleProto = module_1.default.prototype;
|
|
108
|
+
const capturedModules = [];
|
|
109
|
+
const originalCompile = moduleProto._compile;
|
|
110
|
+
moduleProto._compile = function (content, filename, ...rest) {
|
|
111
|
+
capturedModules.push({ id: this.id ?? filename, filename, content });
|
|
112
|
+
return originalCompile.call(this, content, filename, ...rest);
|
|
113
|
+
};
|
|
114
|
+
return {
|
|
115
|
+
getCapturedModules: () => capturedModules,
|
|
116
|
+
uninstall: () => {
|
|
117
|
+
moduleProto._compile = originalCompile;
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Turn captured modules into config-plugin sources, dropping ignored paths.
|
|
123
|
+
* A real file becomes a `file` source; a module with no file on disk (virtual / compiled from a
|
|
124
|
+
* string) becomes a `contents` source keyed by its project-relative path so it stays stable across
|
|
125
|
+
* runs. A path that exists but is not a file (e.g. a directory) is skipped.
|
|
126
|
+
*/
|
|
127
|
+
async function resolveLoadedModuleSourcesAsync(capturedModules, projectRoot, ignoredPaths) {
|
|
128
|
+
const seen = new Set();
|
|
129
|
+
const ignoredPathMatchObjects = (0, Path_1.buildPathMatchObjects)(ignoredPaths);
|
|
130
|
+
const candidates = capturedModules
|
|
131
|
+
.map(({ filename, content }) => ({
|
|
132
|
+
relativePath: (0, Path_1.toPosixPath)(path_1.default.relative(projectRoot, filename)),
|
|
133
|
+
filename,
|
|
134
|
+
content,
|
|
135
|
+
}))
|
|
136
|
+
.filter(({ relativePath }) => {
|
|
137
|
+
if (seen.has(relativePath) ||
|
|
138
|
+
(0, Path_1.isIgnoredPathWithMatchObjects)(relativePath, ignoredPathMatchObjects)) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
seen.add(relativePath);
|
|
142
|
+
return true;
|
|
143
|
+
});
|
|
144
|
+
const sources = await Promise.all(candidates.map(async ({ relativePath, filename, content }) => {
|
|
145
|
+
try {
|
|
146
|
+
const stat = await promises_1.default.stat(filename);
|
|
147
|
+
return stat.isFile() ? { type: 'file', path: relativePath } : null;
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
if (error.code === 'ENOENT') {
|
|
151
|
+
return { type: 'contents', id: relativePath, contents: content };
|
|
152
|
+
}
|
|
153
|
+
throw error;
|
|
154
|
+
}
|
|
155
|
+
}));
|
|
156
|
+
return sources.filter((source) => source !== null);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get the path to the ExpoConfigLoader file.
|
|
160
|
+
*/
|
|
161
|
+
function getExpoConfigLoaderPath() {
|
|
162
|
+
return path_1.default.join(__dirname, 'ExpoConfigLoader.js');
|
|
163
|
+
}
|
|
164
|
+
// Ignore known non-native packages loaded while applying config plugins, which the plugins-skipped
|
|
165
|
+
// diff can't drop since they only load during plugin application.
|
|
166
|
+
const DEFAULT_CONFIG_LOADING_IGNORE_PATHS = [
|
|
167
|
+
'**/node_modules/@expo/**/*',
|
|
168
|
+
`**/node_modules/{${[
|
|
169
|
+
'ansi-styles',
|
|
170
|
+
'base64-js',
|
|
171
|
+
'big-integer',
|
|
172
|
+
'bplist-creator',
|
|
173
|
+
'chalk',
|
|
174
|
+
'cross-spawn',
|
|
175
|
+
'debug',
|
|
176
|
+
'has-flag',
|
|
177
|
+
'isexe',
|
|
178
|
+
'jimp-compact',
|
|
179
|
+
'ms',
|
|
180
|
+
'parse-png',
|
|
181
|
+
'path-key',
|
|
182
|
+
'plist',
|
|
183
|
+
'pngjs',
|
|
184
|
+
// The loader and the project's plugins can resolve different copies. Its
|
|
185
|
+
// module-cache warmness must not turn this JS resolution helper into a
|
|
186
|
+
// native input when the CLI is installed outside the app checkout.
|
|
187
|
+
'resolve-from',
|
|
188
|
+
'sax',
|
|
189
|
+
'semver',
|
|
190
|
+
'shebang-command',
|
|
191
|
+
'shebang-regex',
|
|
192
|
+
'simple-plist',
|
|
193
|
+
'stream-buffers',
|
|
194
|
+
'supports-color',
|
|
195
|
+
'uuid',
|
|
196
|
+
'which',
|
|
197
|
+
'xcode',
|
|
198
|
+
'xml2js',
|
|
199
|
+
'xmlbuilder',
|
|
200
|
+
].join(',')}}/**/*`,
|
|
201
|
+
];
|