vxrn 0.1.19 → 0.1.21
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/dist/cjs/build.js +57 -8
- package/dist/cjs/build.js.map +2 -2
- package/dist/cjs/build.native.js +180 -8
- package/dist/cjs/build.native.js.map +2 -2
- package/dist/cjs/cli.js +77 -3
- package/dist/cjs/cli.js.map +2 -2
- package/dist/cjs/cli.native.js +268 -2
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/constants.js +21 -0
- package/dist/cjs/constants.js.map +6 -0
- package/dist/cjs/constants.native.js +26 -0
- package/dist/cjs/constants.native.js.map +6 -0
- package/dist/cjs/createDevServer.js +9 -10
- package/dist/cjs/createDevServer.js.map +1 -1
- package/dist/cjs/createDevServer.native.js +9 -11
- package/dist/cjs/createDevServer.native.js.map +2 -2
- package/dist/cjs/createExpoServer.js +34 -0
- package/dist/cjs/createExpoServer.js.map +6 -0
- package/dist/cjs/createExpoServer.native.js +42 -0
- package/dist/cjs/createExpoServer.native.js.map +6 -0
- package/dist/cjs/{getBaseViteConfig.js → dispose.js} +12 -24
- package/dist/cjs/dispose.js.map +6 -0
- package/dist/cjs/{getBaseViteConfig.native.js → dispose.native.js} +16 -26
- package/dist/cjs/dispose.native.js.map +6 -0
- package/dist/cjs/exports/build.js +145 -0
- package/dist/cjs/exports/build.js.map +6 -0
- package/dist/cjs/exports/build.native.js +409 -0
- package/dist/cjs/exports/build.native.js.map +6 -0
- package/dist/cjs/exports/checkPatches.js +62 -0
- package/dist/cjs/exports/checkPatches.js.map +6 -0
- package/dist/cjs/{getOptionsFIlled.native.js → exports/checkPatches.native.js} +106 -124
- package/dist/cjs/exports/checkPatches.native.js.map +6 -0
- package/dist/cjs/{create.js → exports/dev.js} +90 -168
- package/dist/cjs/exports/dev.js.map +6 -0
- package/dist/cjs/{create.native.js → exports/dev.native.js} +148 -357
- package/dist/cjs/exports/dev.native.js.map +6 -0
- package/dist/cjs/{dev/bindKeypressInput.js → exports/serve.js} +31 -40
- package/dist/cjs/exports/serve.js.map +6 -0
- package/dist/cjs/{getVitePath.native.js → exports/serve.native.js} +99 -60
- package/dist/cjs/exports/serve.native.js.map +6 -0
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +3 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.js +69 -0
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.js.map +6 -0
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js +97 -0
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js.map +6 -0
- package/dist/cjs/plugins/clientInjectPlugin.js +66 -0
- package/dist/cjs/plugins/clientInjectPlugin.js.map +6 -0
- package/dist/cjs/plugins/clientInjectPlugin.native.js +190 -0
- package/dist/cjs/plugins/clientInjectPlugin.native.js.map +6 -0
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.js +89 -0
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.js.map +6 -0
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.native.js +346 -0
- package/dist/cjs/plugins/reactNativeCommonJsPlugin.native.js.map +6 -0
- package/dist/cjs/utils/checkPatches.js +62 -0
- package/dist/cjs/utils/checkPatches.js.map +6 -0
- package/dist/cjs/{VXRNConfigFilled.native.js → utils/checkPatches.native.js} +106 -124
- package/dist/cjs/utils/checkPatches.native.js.map +6 -0
- package/dist/cjs/utils/dispose.js +28 -0
- package/dist/cjs/utils/dispose.js.map +6 -0
- package/dist/cjs/utils/dispose.native.js +36 -0
- package/dist/cjs/utils/dispose.native.js.map +6 -0
- package/dist/cjs/utils/getBaseViteConfig.js +2 -2
- package/dist/cjs/utils/getBaseViteConfig.js.map +1 -1
- package/dist/cjs/utils/getBaseViteConfig.native.js +2 -2
- package/dist/cjs/utils/getBaseViteConfig.native.js.map +1 -1
- package/dist/cjs/utils/getOptionsFilled.js +3 -3
- package/dist/cjs/utils/getOptionsFilled.js.map +2 -2
- package/dist/cjs/utils/getOptionsFilled.native.js +4 -3
- package/dist/cjs/utils/getOptionsFilled.native.js.map +2 -2
- package/dist/cjs/utils/patches.js +62 -0
- package/dist/cjs/utils/patches.js.map +6 -0
- package/dist/cjs/utils/patches.native.js +289 -0
- package/dist/cjs/utils/patches.native.js.map +6 -0
- package/dist/cjs/utils/prerender.js +1 -0
- package/dist/cjs/utils/prerender.js.map +6 -0
- package/dist/cjs/utils/prerender.native.js +2 -0
- package/dist/cjs/utils/prerender.native.js.map +6 -0
- package/dist/cjs/vendor/createExpoServer.js +34 -0
- package/dist/cjs/vendor/createExpoServer.js.map +6 -0
- package/dist/cjs/vendor/createExpoServer.native.js +42 -0
- package/dist/cjs/vendor/createExpoServer.native.js.map +6 -0
- package/dist/esm/build.js +51 -6
- package/dist/esm/build.js.map +2 -2
- package/dist/esm/build.mjs +68 -5
- package/dist/esm/build.native.js +174 -6
- package/dist/esm/build.native.js.map +2 -2
- package/dist/esm/cli.js +58 -3
- package/dist/esm/cli.js.map +2 -2
- package/dist/esm/cli.mjs +81 -9
- package/dist/esm/cli.native.js +249 -3
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/constants.js +5 -0
- package/dist/esm/constants.js.map +6 -0
- package/dist/esm/constants.mjs +2 -0
- package/dist/esm/constants.native.js +5 -0
- package/dist/esm/constants.native.js.map +6 -0
- package/dist/esm/createDevServer.js +10 -9
- package/dist/esm/createDevServer.js.map +1 -1
- package/dist/esm/createDevServer.mjs +8 -12
- package/dist/esm/createDevServer.native.js +10 -10
- package/dist/esm/createDevServer.native.js.map +2 -2
- package/dist/esm/createExpoServer.js +20 -0
- package/dist/esm/createExpoServer.js.map +6 -0
- package/dist/esm/createExpoServer.mjs +17 -0
- package/dist/esm/createExpoServer.native.js +22 -0
- package/dist/esm/createExpoServer.native.js.map +6 -0
- package/dist/esm/dispose.js +12 -0
- package/dist/esm/dispose.js.map +6 -0
- package/dist/esm/dispose.mjs +8 -0
- package/dist/esm/dispose.native.js +14 -0
- package/dist/esm/dispose.native.js.map +6 -0
- package/dist/esm/exports/build.js +128 -0
- package/dist/esm/exports/build.js.map +6 -0
- package/dist/esm/exports/build.mjs +119 -0
- package/dist/esm/exports/build.native.js +385 -0
- package/dist/esm/exports/build.native.js.map +6 -0
- package/dist/esm/exports/checkPatches.js +40 -0
- package/dist/esm/exports/checkPatches.js.map +6 -0
- package/dist/esm/exports/checkPatches.mjs +31 -0
- package/dist/esm/exports/checkPatches.native.js +262 -0
- package/dist/esm/exports/checkPatches.native.js.map +6 -0
- package/dist/esm/{create.js → exports/dev.js} +94 -171
- package/dist/esm/exports/dev.js.map +6 -0
- package/dist/esm/exports/dev.mjs +543 -0
- package/dist/esm/{create.native.js → exports/dev.native.js} +150 -359
- package/dist/esm/exports/dev.native.js.map +6 -0
- package/dist/esm/exports/serve.js +33 -0
- package/dist/esm/exports/serve.js.map +6 -0
- package/dist/esm/exports/serve.mjs +38 -0
- package/dist/esm/exports/serve.native.js +209 -0
- package/dist/esm/exports/serve.native.js.map +6 -0
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +3 -4
- package/dist/esm/index.native.js +3 -5
- package/dist/esm/index.native.js.map +2 -2
- package/dist/esm/plugins/clientBundleTreeShakePlugin.js +46 -0
- package/dist/esm/plugins/clientBundleTreeShakePlugin.js.map +6 -0
- package/dist/esm/plugins/clientBundleTreeShakePlugin.mjs +41 -0
- package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js +70 -0
- package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js.map +6 -0
- package/dist/esm/plugins/clientInjectPlugin.js +42 -0
- package/dist/esm/plugins/clientInjectPlugin.js.map +6 -0
- package/dist/esm/plugins/clientInjectPlugin.mjs +56 -0
- package/dist/esm/plugins/clientInjectPlugin.native.js +161 -0
- package/dist/esm/plugins/clientInjectPlugin.native.js.map +6 -0
- package/dist/esm/plugins/reactNativeCommonJsPlugin.js +75 -0
- package/dist/esm/plugins/reactNativeCommonJsPlugin.js.map +6 -0
- package/dist/esm/plugins/reactNativeCommonJsPlugin.mjs +55 -0
- package/dist/esm/plugins/reactNativeCommonJsPlugin.native.js +327 -0
- package/dist/esm/plugins/reactNativeCommonJsPlugin.native.js.map +6 -0
- package/dist/esm/utils/checkPatches.js +40 -0
- package/dist/esm/utils/checkPatches.js.map +6 -0
- package/dist/esm/utils/checkPatches.mjs +31 -0
- package/dist/esm/utils/checkPatches.native.js +262 -0
- package/dist/esm/utils/checkPatches.native.js.map +6 -0
- package/dist/esm/utils/dispose.js +12 -0
- package/dist/esm/utils/dispose.js.map +6 -0
- package/dist/esm/utils/dispose.mjs +8 -0
- package/dist/esm/utils/dispose.native.js +14 -0
- package/dist/esm/utils/dispose.native.js.map +6 -0
- package/dist/esm/utils/getBaseViteConfig.js +1 -1
- package/dist/esm/utils/getBaseViteConfig.mjs +1 -1
- package/dist/esm/utils/getBaseViteConfig.native.js +1 -1
- package/dist/esm/utils/getOptionsFilled.js +3 -1
- package/dist/esm/utils/getOptionsFilled.js.map +2 -2
- package/dist/esm/utils/getOptionsFilled.mjs +3 -1
- package/dist/esm/utils/getOptionsFilled.native.js +4 -2
- package/dist/esm/utils/getOptionsFilled.native.js.map +2 -2
- package/dist/esm/utils/patches.js +40 -0
- package/dist/esm/utils/patches.js.map +6 -0
- package/dist/esm/utils/patches.mjs +31 -0
- package/dist/esm/utils/patches.native.js +262 -0
- package/dist/esm/utils/patches.native.js.map +6 -0
- package/dist/esm/utils/prerender.js +1 -0
- package/dist/esm/utils/prerender.js.map +6 -0
- package/dist/esm/utils/prerender.mjs +0 -0
- package/dist/esm/utils/prerender.native.js +1 -0
- package/dist/esm/utils/prerender.native.js.map +6 -0
- package/dist/esm/vendor/createExpoServer.js +20 -0
- package/dist/esm/vendor/createExpoServer.js.map +6 -0
- package/dist/esm/vendor/createExpoServer.mjs +17 -0
- package/dist/esm/vendor/createExpoServer.native.js +22 -0
- package/dist/esm/vendor/createExpoServer.native.js.map +6 -0
- package/package.json +9 -6
- package/react-native-template.js +11 -0
- package/src/cli.ts +78 -2
- package/src/exports/build.ts +197 -0
- package/src/{createDevServer.ts → exports/dev.ts} +25 -72
- package/src/exports/serve.ts +51 -0
- package/src/index.ts +3 -3
- package/src/plugins/clientBundleTreeShakePlugin.tsx +105 -0
- package/src/{dev → plugins}/clientInjectPlugin.ts +1 -12
- package/src/{nativePlugin.ts → plugins/reactNativeCommonJsPlugin.ts} +3 -26
- package/src/utils/getBaseViteConfig.ts +1 -1
- package/src/utils/getOptionsFilled.ts +6 -1
- package/src/utils/patches.ts +54 -0
- package/src/vendor/createExpoServer.ts +27 -0
- package/types/build.d.ts +4 -4
- package/types/constants.d.ts +2 -0
- package/types/createExpoServer.d.ts +4 -0
- package/types/dispose.d.ts +3 -0
- package/types/exports/build.d.ts +4 -0
- package/types/exports/dev.d.ts +13 -0
- package/types/exports/serve.d.ts +3 -0
- package/types/index.d.ts +2 -3
- package/types/plugins/clientBundleTreeShakePlugin.d.ts +13 -0
- package/types/plugins/clientBundleTreeShakePlugni.d.ts +13 -0
- package/types/plugins/clientInjectPlugin.d.ts +7 -0
- package/types/plugins/reactNativeCommonJsPlugin.d.ts +7 -0
- package/types/plugins/server-tree-shake.d.ts +13 -0
- package/types/utils/checkPatches.d.ts +3 -0
- package/types/utils/dispose.d.ts +3 -0
- package/types/utils/patches.d.ts +3 -0
- package/types/utils/prerender.d.ts +1 -0
- package/types/vendor/createExpoServer.d.ts +4 -0
- package/dist/cjs/VXRNConfigFilled.js +0 -53
- package/dist/cjs/VXRNConfigFilled.js.map +0 -6
- package/dist/cjs/VXRNConfigFilled.native.js.map +0 -6
- package/dist/cjs/create.js.map +0 -6
- package/dist/cjs/create.native.js.map +0 -6
- package/dist/cjs/dev/bindKeypressInput.js.map +0 -6
- package/dist/cjs/dev/bindKeypressInput.native.js +0 -73
- package/dist/cjs/dev/bindKeypressInput.native.js.map +0 -6
- package/dist/cjs/getBaseViteConfig.js.map +0 -6
- package/dist/cjs/getBaseViteConfig.native.js.map +0 -6
- package/dist/cjs/getOptionsFIlled.js +0 -53
- package/dist/cjs/getOptionsFIlled.js.map +0 -6
- package/dist/cjs/getOptionsFIlled.native.js.map +0 -6
- package/dist/cjs/getVitePath.js +0 -50
- package/dist/cjs/getVitePath.js.map +0 -6
- package/dist/cjs/getVitePath.native.js.map +0 -6
- package/dist/esm/VXRNConfigFilled.js +0 -30
- package/dist/esm/VXRNConfigFilled.js.map +0 -6
- package/dist/esm/VXRNConfigFilled.mjs +0 -34
- package/dist/esm/VXRNConfigFilled.native.js +0 -279
- package/dist/esm/VXRNConfigFilled.native.js.map +0 -6
- package/dist/esm/create.js.map +0 -6
- package/dist/esm/create.mjs +0 -624
- package/dist/esm/create.native.js.map +0 -6
- package/dist/esm/dev/bindKeypressInput.js +0 -40
- package/dist/esm/dev/bindKeypressInput.js.map +0 -6
- package/dist/esm/dev/bindKeypressInput.mjs +0 -41
- package/dist/esm/dev/bindKeypressInput.native.js +0 -44
- package/dist/esm/dev/bindKeypressInput.native.js.map +0 -6
- package/dist/esm/getBaseViteConfig.js +0 -24
- package/dist/esm/getBaseViteConfig.js.map +0 -6
- package/dist/esm/getBaseViteConfig.mjs +0 -23
- package/dist/esm/getBaseViteConfig.native.js +0 -25
- package/dist/esm/getBaseViteConfig.native.js.map +0 -6
- package/dist/esm/getOptionsFIlled.js +0 -30
- package/dist/esm/getOptionsFIlled.js.map +0 -6
- package/dist/esm/getOptionsFIlled.mjs +0 -34
- package/dist/esm/getOptionsFIlled.native.js +0 -279
- package/dist/esm/getOptionsFIlled.native.js.map +0 -6
- package/dist/esm/getVitePath.js +0 -28
- package/dist/esm/getVitePath.js.map +0 -6
- package/dist/esm/getVitePath.mjs +0 -21
- package/dist/esm/getVitePath.native.js +0 -170
- package/dist/esm/getVitePath.native.js.map +0 -6
- package/src/build.ts +0 -96
- package/src/commands/cli-build.ts +0 -25
- package/src/commands/cli-dev.ts +0 -47
- package/src/commands/index.ts +0 -10
- package/src/dev/createDevServer.ts +0 -234
- /package/src/{utils/constants.ts → constants.ts} +0 -0
- /package/src/{utils.ts → utils/dispose.ts} +0 -0
|
@@ -21,22 +21,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
22
|
mod
|
|
23
23
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var
|
|
25
|
-
__export(
|
|
26
|
-
|
|
24
|
+
var checkPatches_exports = {};
|
|
25
|
+
__export(checkPatches_exports, {
|
|
26
|
+
checkPatches: () => checkPatches
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
29
|
-
var
|
|
30
|
-
const import_meta = {};
|
|
28
|
+
module.exports = __toCommonJS(checkPatches_exports);
|
|
29
|
+
var import_find_node_modules = __toESM(require("find-node-modules"), 1), import_node_path = require("node:path"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
31
30
|
function _array_like_to_array(arr, len) {
|
|
32
31
|
(len == null || len > arr.length) && (len = arr.length);
|
|
33
32
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
34
33
|
arr2[i] = arr[i];
|
|
35
34
|
return arr2;
|
|
36
35
|
}
|
|
37
|
-
function
|
|
36
|
+
function _array_without_holes(arr) {
|
|
38
37
|
if (Array.isArray(arr))
|
|
39
|
-
return arr;
|
|
38
|
+
return _array_like_to_array(arr);
|
|
40
39
|
}
|
|
41
40
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
42
41
|
try {
|
|
@@ -62,65 +61,15 @@ function _async_to_generator(fn) {
|
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
enumerable: !0,
|
|
69
|
-
configurable: !0,
|
|
70
|
-
writable: !0
|
|
71
|
-
}) : obj[key] = value, obj;
|
|
64
|
+
function _iterable_to_array(iter) {
|
|
65
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
66
|
+
return Array.from(iter);
|
|
72
67
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
if (_i != null) {
|
|
76
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
77
|
-
try {
|
|
78
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
79
|
-
;
|
|
80
|
-
} catch (err) {
|
|
81
|
-
_d = !0, _e = err;
|
|
82
|
-
} finally {
|
|
83
|
-
try {
|
|
84
|
-
!_n && _i.return != null && _i.return();
|
|
85
|
-
} finally {
|
|
86
|
-
if (_d)
|
|
87
|
-
throw _e;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return _arr;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function _non_iterable_rest() {
|
|
94
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
95
|
-
}
|
|
96
|
-
function _object_spread(target) {
|
|
97
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
98
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
99
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
100
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
101
|
-
}))), ownKeys2.forEach(function(key) {
|
|
102
|
-
_define_property(target, key, source[key]);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return target;
|
|
106
|
-
}
|
|
107
|
-
function ownKeys(object, enumerableOnly) {
|
|
108
|
-
var keys = Object.keys(object);
|
|
109
|
-
if (Object.getOwnPropertySymbols) {
|
|
110
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
111
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
112
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
113
|
-
})), keys.push.apply(keys, symbols);
|
|
114
|
-
}
|
|
115
|
-
return keys;
|
|
68
|
+
function _non_iterable_spread() {
|
|
69
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
70
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
119
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
120
|
-
}), target;
|
|
121
|
-
}
|
|
122
|
-
function _sliced_to_array(arr, i) {
|
|
123
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
71
|
+
function _to_consumable_array(arr) {
|
|
72
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
124
73
|
}
|
|
125
74
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
126
75
|
if (o) {
|
|
@@ -224,84 +173,117 @@ function _ts_generator(thisArg, body) {
|
|
|
224
173
|
};
|
|
225
174
|
}
|
|
226
175
|
}
|
|
227
|
-
|
|
228
|
-
|
|
176
|
+
var patches = [
|
|
177
|
+
{
|
|
178
|
+
module: "react-native-screens",
|
|
179
|
+
patchFile: "react-native-screens+3.22.1.patch"
|
|
180
|
+
}
|
|
181
|
+
];
|
|
182
|
+
function checkPatches(options) {
|
|
183
|
+
return _checkPatches.apply(this, arguments);
|
|
229
184
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
232
|
-
var
|
|
185
|
+
function _checkPatches() {
|
|
186
|
+
return _checkPatches = _async_to_generator(function(options) {
|
|
187
|
+
var nodeModulesDirs, patchesToCopy, didCopy, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, patch, dest, src, err;
|
|
233
188
|
return _ts_generator(this, function(_state) {
|
|
234
189
|
switch (_state.label) {
|
|
235
190
|
case 0:
|
|
236
|
-
return
|
|
191
|
+
return options.state.applyPatches === !1 ? [
|
|
192
|
+
2
|
|
193
|
+
] : (nodeModulesDirs = (0, import_find_node_modules.default)({
|
|
194
|
+
cwd: options.root
|
|
195
|
+
}).map(function(relativePath) {
|
|
196
|
+
return (0, import_node_path.join)(options.root, relativePath);
|
|
197
|
+
}), patchesToCopy = /* @__PURE__ */ new Set(), [
|
|
237
198
|
4,
|
|
238
|
-
Promise.all(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
199
|
+
Promise.all(patches.flatMap(function(patch2) {
|
|
200
|
+
return nodeModulesDirs.flatMap(function() {
|
|
201
|
+
var _ref = _async_to_generator(function(dir) {
|
|
202
|
+
return _ts_generator(this, function(_state2) {
|
|
203
|
+
switch (_state2.label) {
|
|
204
|
+
case 0:
|
|
205
|
+
return [
|
|
206
|
+
4,
|
|
207
|
+
import_fs_extra.default.pathExists((0, import_node_path.join)(dir, patch2.module))
|
|
208
|
+
];
|
|
209
|
+
case 1:
|
|
210
|
+
return _state2.sent() && patchesToCopy.add(patch2), [
|
|
211
|
+
2
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
return function(dir) {
|
|
217
|
+
return _ref.apply(this, arguments);
|
|
218
|
+
};
|
|
219
|
+
}());
|
|
220
|
+
}))
|
|
221
|
+
]);
|
|
244
222
|
case 1:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
]), state = _ref[0], packageJSON = _ref[1], [
|
|
223
|
+
_state.sent(), didCopy = !1, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0, _state.label = 2;
|
|
224
|
+
case 2:
|
|
225
|
+
_state.trys.push([
|
|
249
226
|
2,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
port
|
|
260
|
-
})
|
|
261
|
-
];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
}), _getOptionsFilled.apply(this, arguments);
|
|
265
|
-
}
|
|
266
|
-
function readState(cacheDir) {
|
|
267
|
-
return _readState.apply(this, arguments);
|
|
268
|
-
}
|
|
269
|
-
function _readState() {
|
|
270
|
-
return _readState = _async_to_generator(function(cacheDir) {
|
|
271
|
-
var statePath, state, _tmp;
|
|
272
|
-
return _ts_generator(this, function(_state) {
|
|
273
|
-
switch (_state.label) {
|
|
274
|
-
case 0:
|
|
275
|
-
return statePath = (0, import_node_path.join)(cacheDir, "state.json"), [
|
|
227
|
+
8,
|
|
228
|
+
9,
|
|
229
|
+
10
|
|
230
|
+
]), _iterator = _to_consumable_array(patchesToCopy)[Symbol.iterator](), _state.label = 3;
|
|
231
|
+
case 3:
|
|
232
|
+
return (_iteratorNormalCompletion = (_step = _iterator.next()).done) ? [
|
|
233
|
+
3,
|
|
234
|
+
7
|
|
235
|
+
] : (patch = _step.value, dest = (0, import_node_path.join)(options.userPatchesDir, patch.patchFile), [
|
|
276
236
|
4,
|
|
277
|
-
|
|
278
|
-
];
|
|
279
|
-
case
|
|
237
|
+
pathExists(dest)
|
|
238
|
+
]);
|
|
239
|
+
case 4:
|
|
280
240
|
return _state.sent() ? [
|
|
241
|
+
3,
|
|
242
|
+
6
|
|
243
|
+
] : (didCopy = !0, console.info("Copying patch ".concat(patch.module)), src = (0, import_node_path.join)(options.internalPatchesDir, patch.patchFile), [
|
|
281
244
|
4,
|
|
282
|
-
import_fs_extra.default.
|
|
283
|
-
]
|
|
245
|
+
import_fs_extra.default.copy(src, dest)
|
|
246
|
+
]);
|
|
247
|
+
case 5:
|
|
248
|
+
_state.sent(), _state.label = 6;
|
|
249
|
+
case 6:
|
|
250
|
+
return _iteratorNormalCompletion = !0, [
|
|
284
251
|
3,
|
|
285
252
|
3
|
|
286
253
|
];
|
|
287
|
-
case
|
|
288
|
-
return
|
|
254
|
+
case 7:
|
|
255
|
+
return [
|
|
289
256
|
3,
|
|
290
|
-
|
|
257
|
+
10
|
|
291
258
|
];
|
|
292
|
-
case
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
259
|
+
case 8:
|
|
260
|
+
return err = _state.sent(), _didIteratorError = !0, _iteratorError = err, [
|
|
261
|
+
3,
|
|
262
|
+
10
|
|
263
|
+
];
|
|
264
|
+
case 9:
|
|
265
|
+
try {
|
|
266
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
267
|
+
} finally {
|
|
268
|
+
if (_didIteratorError)
|
|
269
|
+
throw _iteratorError;
|
|
270
|
+
}
|
|
271
|
+
return [
|
|
272
|
+
7
|
|
273
|
+
];
|
|
274
|
+
case 10:
|
|
275
|
+
return didCopy && (console.info(`
|
|
276
|
+
Please restart after applying the patch by running "npx patch-package".
|
|
277
|
+
Ideally add it to your devDependencies and as a postinstall script.
|
|
278
|
+
`), process.exit(0)), [
|
|
279
|
+
2
|
|
298
280
|
];
|
|
299
281
|
}
|
|
300
282
|
});
|
|
301
|
-
}),
|
|
283
|
+
}), _checkPatches.apply(this, arguments);
|
|
302
284
|
}
|
|
303
285
|
// Annotate the CommonJS export names for ESM import in node:
|
|
304
286
|
0 && (module.exports = {
|
|
305
|
-
|
|
287
|
+
checkPatches
|
|
306
288
|
});
|
|
307
|
-
//# sourceMappingURL=
|
|
289
|
+
//# sourceMappingURL=checkPatches.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/checkPatches.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B,0CAC5B,mBAAqB,sBACrB,kBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpB,IAAMA,UAAU;EACd;IACEC,QAAQ;IACRC,WAAW;EACb;;AAGF,SAAsBC,aAAaC,SAAyB;SAAtCD,cAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,gBAAAA;AAAAA,yBAAf,oBAAA,SAA4BC,SAAyB;QAKpDC,iBAIAC,eAYFC,SAEC,2BAAA,mBAAA,gBAAA,WAAA,OAAMC,OACHC,MAIEC,KAAAA;;;;AA3BV,iBAAIN,QAAQO,MAAMC,iBAAiB,KACjC;;eAGIP,sBAAkBQ,yBAAAA,SAAgB;YACtCC,KAAKV,QAAQW;UACf,CAAA,EAAGC,IAAI,SAACC,cAAAA;uBAAiBC,uBAAKd,QAAQW,MAAME,YAAAA;cAEtCX,gBAAgB,oBAAIa,IAAAA,GAE1B;;YAAMC,QAAQC,IACZrB,QAAQsB,QAAQ,SAACd,QAAAA;AACf,qBAAOH,gBAAgBiB,QAAO,WAAA;2BAAC,oBAAA,SAAOC,KAAAA;;;;AAChC,+BAAA;;0BAAMC,gBAAAA,QAAQC,eAAWP,uBAAKK,KAAKf,OAAMP,MAAM,CAAA;;;AAAnD,+BAAIyB,QAAA,KAAA,KACFpB,cAAcqB,IAAInB,MAAAA;;;;;gBAEtB,CAAA;gCAJsCe,KAAAA;;;;YAKxC,CAAA,CAAA;;;AAPF,iBAAA,KAAA,GAUIhB,UAAU,IAET,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;;;;;;cAAA,YAAgB,qBAAGD,aAAAA,EAAAA,OAAAA,QAAAA,EAAAA;;kBAAnB,6BAAA,QAAA,UAAA,KAAA,GAAA,QAAA;;;eAAME,QAAN,MAAA,OACGC,WAAOS,uBAAKd,QAAQwB,gBAAgBpB,MAAMN,SAAS,GACnD;;YAAMuB,WAAWhB,IAAAA;;;iBAAjB,OAAA,KAAA,IAAF;;;eACFF,UAAU,IACVsB,QAAQC,KAAM,iBAA6B,OAAbtB,MAAMP,MAAM,CAAA,GACpCS,UAAMQ,uBAAKd,QAAQ2B,oBAAoBvB,MAAMN,SAAS,GAC5D;;YAAMsB,gBAAAA,QAAQQ,KAAKtB,KAAKD,IAAAA;;;AAAxB,iBAAA,KAAA;;AANC,6CAAA;;;;;;;;;;sCAAA,oBAAA,IAAA,iBAAA;;;;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;;;;AAUL,iBAAIF,YACFsB,QAAQC,KACL;;;CAAA,GAGHG,QAAQC,KAAK,CAAA;;;;;EAEjB,CAAA,GAxCsB/B,cAAAA,MAAAA,MAAAA,SAAAA;;",
|
|
5
|
+
"names": ["patches", "module", "patchFile", "checkPatches", "options", "nodeModulesDirs", "patchesToCopy", "didCopy", "patch", "dest", "src", "state", "applyPatches", "findNodeModules", "cwd", "root", "map", "relativePath", "join", "Set", "Promise", "all", "flatMap", "dir", "FSExtra", "pathExists", "_state", "add", "userPatchesDir", "console", "info", "internalPatchesDir", "copy", "process", "exit"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var dispose_exports = {};
|
|
16
|
+
__export(dispose_exports, {
|
|
17
|
+
disposeAll: () => disposeAll,
|
|
18
|
+
registerDispose: () => registerDispose
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(dispose_exports);
|
|
21
|
+
const disposers = /* @__PURE__ */ new Set();
|
|
22
|
+
function registerDispose(cb) {
|
|
23
|
+
disposers.add(cb);
|
|
24
|
+
}
|
|
25
|
+
function disposeAll() {
|
|
26
|
+
disposers.forEach((cb) => cb());
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=dispose.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/dispose.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,YAAY,oBAAI,IAAc;AAE7B,SAAS,gBAAgB,IAAgB;AAC9C,YAAU,IAAI,EAAE;AAClB;AAEO,SAAS,aAAa;AAC3B,YAAU,QAAQ,CAAC,OAAO,GAAG,CAAC;AAChC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var dispose_exports = {};
|
|
17
|
+
__export(dispose_exports, {
|
|
18
|
+
disposeAll: () => disposeAll,
|
|
19
|
+
registerDispose: () => registerDispose
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(dispose_exports);
|
|
22
|
+
var disposers = /* @__PURE__ */ new Set();
|
|
23
|
+
function registerDispose(cb) {
|
|
24
|
+
disposers.add(cb);
|
|
25
|
+
}
|
|
26
|
+
function disposeAll() {
|
|
27
|
+
disposers.forEach(function(cb) {
|
|
28
|
+
return cb();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
disposeAll,
|
|
34
|
+
registerDispose
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=dispose.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/dispose.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;IAAMA,YAAY,oBAAIC,IAAAA;AAEf,SAASC,gBAAgBC,IAAc;AAC5CH,YAAUI,IAAID,EAAAA;AAChB;AAEO,SAASE,aAAAA;AACdL,YAAUM,QAAQ,SAACH,IAAAA;WAAOA,GAAAA;;AAC5B;",
|
|
5
|
+
"names": ["disposers", "Set", "registerDispose", "cb", "add", "disposeAll", "forEach"]
|
|
6
|
+
}
|
|
@@ -17,7 +17,7 @@ __export(getBaseViteConfig_exports, {
|
|
|
17
17
|
getBaseViteConfig: () => getBaseViteConfig
|
|
18
18
|
});
|
|
19
19
|
module.exports = __toCommonJS(getBaseViteConfig_exports);
|
|
20
|
-
var
|
|
20
|
+
var import_dev = require("../exports/dev");
|
|
21
21
|
function getBaseViteConfig({ mode }) {
|
|
22
22
|
return {
|
|
23
23
|
mode,
|
|
@@ -27,7 +27,7 @@ function getBaseViteConfig({ mode }) {
|
|
|
27
27
|
},
|
|
28
28
|
resolve: {
|
|
29
29
|
alias: {
|
|
30
|
-
"react-native": (0,
|
|
30
|
+
"react-native": (0, import_dev.resolveFile)("react-native-web-lite")
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
build: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/getBaseViteConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,iBAA4B;AAErB,SAAS,kBAAkB,EAAE,KAAK,GAAuD;AAC9F,SAAO;AAAA,IACL;AAAA,IACA,QAAQ;AAAA,MACN,SAAS,GAAG,SAAS,aAAa;AAAA,MAClC,wBAAwB,IAAI,IAAI;AAAA,IAClC;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,QACL,oBAAgB,wBAAY,uBAAuB;AAAA,MACrD;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,iBAAiB;AAAA,QACf,yBAAyB;AAAA,MAC3B;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -18,7 +18,7 @@ __export(getBaseViteConfig_exports, {
|
|
|
18
18
|
getBaseViteConfig: () => getBaseViteConfig
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(getBaseViteConfig_exports);
|
|
21
|
-
var
|
|
21
|
+
var import_dev = require("../exports/dev");
|
|
22
22
|
function getBaseViteConfig(param) {
|
|
23
23
|
var mode = param.mode;
|
|
24
24
|
return {
|
|
@@ -29,7 +29,7 @@ function getBaseViteConfig(param) {
|
|
|
29
29
|
},
|
|
30
30
|
resolve: {
|
|
31
31
|
alias: {
|
|
32
|
-
"react-native": (0,
|
|
32
|
+
"react-native": (0, import_dev.resolveFile)("react-native-web-lite")
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
build: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/getBaseViteConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AACA;;;;;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AACA;;;;;iBAA4B;AAErB,SAASA,kBAAkB,OAAgD;MAA9CC,OAAF,MAAEA;AAClC,SAAO;IACLA;IACAC,QAAQ;MACNC,SAAU,GAAyB,OAAvBF,SAAS,aAAA;MACrB,wBAAyB,IAAQ,OAALA,MAAK,GAAA;IACnC;IACAG,SAAS;MACPC,OAAO;QACL,oBAAgBC,wBAAY,uBAAA;MAC9B;IACF;IACAC,OAAO;MACLC,iBAAiB;QACfC,yBAAyB;MAC3B;IACF;EACF;AACF;",
|
|
5
5
|
"names": ["getBaseViteConfig", "mode", "define", "__DEV__", "resolve", "alias", "resolveFile", "build", "commonjsOptions", "transformMixedEsModules"]
|
|
6
6
|
}
|
|
@@ -25,10 +25,10 @@ __export(getOptionsFilled_exports, {
|
|
|
25
25
|
getOptionsFilled: () => getOptionsFilled
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(getOptionsFilled_exports);
|
|
28
|
-
var import_node_path = require("node:path"), import_pkg_types = require("pkg-types"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
29
|
-
const import_meta = {};
|
|
28
|
+
var import_node_path = require("node:path"), import_pkg_types = require("pkg-types"), import_module = require("module"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
29
|
+
const import_meta = {}, require2 = (0, import_module.createRequire)(import_meta.url);
|
|
30
30
|
async function getOptionsFilled(options) {
|
|
31
|
-
const { host = "127.0.0.1", root = process.cwd(), port = 8081 } = options, packageRootDir = (0, import_node_path.join)(
|
|
31
|
+
const { host = "127.0.0.1", root = process.cwd(), port = 8081 } = options, packageRootDir = (0, import_node_path.join)(require2.resolve("vxrn"), "../../.."), cacheDir = (0, import_node_path.join)(root, "node_modules", ".cache", "vxrn"), internalPatchesDir = (0, import_node_path.join)(packageRootDir, "patches"), userPatchesDir = (0, import_node_path.join)(root, "patches"), [state, packageJSON] = await Promise.all([
|
|
32
32
|
//
|
|
33
33
|
readState(cacheDir),
|
|
34
34
|
(0, import_pkg_types.readPackageJSON)()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/getOptionsFilled.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sBACrB,mBAAgC,sBAChC,kBAAoB;
|
|
5
|
-
"names": ["FSExtra"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sBACrB,mBAAgC,sBAChC,gBAA8B,mBAC9B,kBAAoB;AAHpB,wBAMMA,eAAU,6BAAc,YAAY,GAAG;AAI7C,eAAsB,iBAAiB,SAAqB;AAC1D,QAAM,EAAE,OAAO,aAAa,OAAO,QAAQ,IAAI,GAAG,OAAO,KAAK,IAAI,SAE5D,qBAAiB,uBAAKA,SAAQ,QAAQ,MAAM,GAAG,UAAU,GAEzD,eAAW,uBAAK,MAAM,gBAAgB,UAAU,MAAM,GACtD,yBAAqB,uBAAK,gBAAgB,SAAS,GACnD,qBAAiB,uBAAK,MAAM,SAAS,GACrC,CAAC,OAAO,WAAW,IAAI,MAAM,QAAQ,IAAI;AAAA;AAAA,IAE7C,UAAU,QAAQ;AAAA,QAClB,kCAAgB;AAAA,EAClB,CAAC;AACD,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAMA,eAAe,UAAU,UAAkB;AACzC,QAAM,gBAAY,uBAAK,UAAU,YAAY;AAI7C,SAHsB,MAAM,gBAAAC,QAAQ,WAAW,SAAS,IACpD,MAAM,gBAAAA,QAAQ,SAAS,SAAS,IAChC,CAAC;AAEP;",
|
|
5
|
+
"names": ["require", "FSExtra"]
|
|
6
6
|
}
|
|
@@ -26,7 +26,7 @@ __export(getOptionsFilled_exports, {
|
|
|
26
26
|
getOptionsFilled: () => getOptionsFilled
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(getOptionsFilled_exports);
|
|
29
|
-
var import_node_path = require("node:path"), import_pkg_types = require("pkg-types"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
29
|
+
var import_node_path = require("node:path"), import_pkg_types = require("pkg-types"), import_module = require("module"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
30
30
|
const import_meta = {};
|
|
31
31
|
function _array_like_to_array(arr, len) {
|
|
32
32
|
(len == null || len > arr.length) && (len = arr.length);
|
|
@@ -224,16 +224,17 @@ function _ts_generator(thisArg, body) {
|
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
+
var require2 = (0, import_module.createRequire)(import_meta.url);
|
|
227
228
|
function getOptionsFilled(options) {
|
|
228
229
|
return _getOptionsFilled.apply(this, arguments);
|
|
229
230
|
}
|
|
230
231
|
function _getOptionsFilled() {
|
|
231
232
|
return _getOptionsFilled = _async_to_generator(function(options) {
|
|
232
|
-
var _options_host, host, _options_root, root, _options_port, port,
|
|
233
|
+
var _options_host, host, _options_root, root, _options_port, port, packageRootDir, cacheDir, internalPatchesDir, userPatchesDir, _ref, state, packageJSON;
|
|
233
234
|
return _ts_generator(this, function(_state) {
|
|
234
235
|
switch (_state.label) {
|
|
235
236
|
case 0:
|
|
236
|
-
return _options_host = options.host, host = _options_host === void 0 ? "127.0.0.1" : _options_host, _options_root = options.root, root = _options_root === void 0 ? process.cwd() : _options_root, _options_port = options.port, port = _options_port === void 0 ? 8081 : _options_port, packageRootDir = (0, import_node_path.join)((
|
|
237
|
+
return _options_host = options.host, host = _options_host === void 0 ? "127.0.0.1" : _options_host, _options_root = options.root, root = _options_root === void 0 ? process.cwd() : _options_root, _options_port = options.port, port = _options_port === void 0 ? 8081 : _options_port, packageRootDir = (0, import_node_path.join)(require2.resolve("vxrn"), "../../.."), cacheDir = (0, import_node_path.join)(root, "node_modules", ".cache", "vxrn"), internalPatchesDir = (0, import_node_path.join)(packageRootDir, "patches"), userPatchesDir = (0, import_node_path.join)(root, "patches"), [
|
|
237
238
|
4,
|
|
238
239
|
Promise.all([
|
|
239
240
|
//
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/Users/n8/vxrn/packages/vxrn/src/utils/getOptionsFilled.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,mBAAgC,sBAChC,kBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
5
|
-
"names": ["getOptionsFilled", "options", "host", "root", "port", "packageRootDir", "cacheDir", "internalPatchesDir", "userPatchesDir", "state", "packageJSON", "process", "cwd", "join", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sBACrB,mBAAgC,sBAChC,gBAA8B,mBAC9B,kBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGpB,IAAMA,eAAUC,6BAAc,YAAYC,GAAG;AAI7C,SAAsBC,iBAAiBC,SAAmB;SAApCD,kBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,oBAAAA;AAAAA,6BAAf,oBAAA,SAAgCC,SAAmB;uBAChDC,MAAAA,eAAoBC,MAAAA,eAAsBC,MAE5CC,gBAEAC,UACAC,oBACAC,gBACuB,MAAtBC,OAAOC;;;;iCAPoDT,QAA1DC,MAAAA,OAAAA,kBAAAA,SAAO,cAAA,eAAA,gBAAmDD,QAAtCE,MAAAA,OAAAA,kBAAAA,SAAOQ,QAAQC,IAAG,IAAA,eAAA,gBAAoBX,QAAhBG,MAAAA,OAAAA,kBAAAA,SAAO,OAAA,eAEnDC,qBAAiBQ,uBAAKhB,SAAQiB,QAAQ,MAAA,GAAS,UAAA,GAE/CR,eAAWO,uBAAKV,MAAM,gBAAgB,UAAU,MAAA,GAChDI,yBAAqBM,uBAAKR,gBAAgB,SAAA,GAC1CG,qBAAiBK,uBAAKV,MAAM,SAAA,GACL;;YAAMY,QAAQC,IAAG;;cAE5CC,UAAUX,QAAAA;kBACVY,kCAAAA;;;;AAH2B,wBAAA,iBAAA,MAAA,QAAA;YAAA,OAAA,KAAA;;cAAtBT,QAAsB,KAAA,CAAA,GAAfC,cAAe,KAAA,CAAA,GAK7B;;YAAO,qBAAA,eAAA,CAAA,GACFT,OAAAA,GAAAA;cACHS;cACAD;cACAJ;cACAC;cACAE;cACAD;cACAL;cACAC;cACAC;;;;;EAEJ,CAAA,GAzBsBJ,kBAAAA,MAAAA,MAAAA,SAAAA;;SA+BPiB,UAAUX,UAAgB;SAA1BW,WAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,aAAAA;AAAAA,sBAAf,oBAAA,SAAyBX,UAAgB;QACjCa,WACAV,OAAAA;;;;AADAU,iCAAYN,uBAAKP,UAAU,YAAA,GACX;;YAAMc,gBAAAA,QAAQC,WAAWF,SAAAA;;;iBAAzB,OAAA,KAAA,IAClB;;YAAMC,gBAAAA,QAAQE,SAASH,SAAAA;cADL;;;;;wBAClB,OAAA,KAAA;;;;;iBACA,CAAC;;AAFCV,yBAAAA,MAGN;;YAAOA;;;;EACT,CAAA,GANeQ,WAAAA,MAAAA,MAAAA,SAAAA;;",
|
|
5
|
+
"names": ["require", "createRequire", "url", "getOptionsFilled", "options", "host", "root", "port", "packageRootDir", "cacheDir", "internalPatchesDir", "userPatchesDir", "state", "packageJSON", "process", "cwd", "join", "resolve", "Promise", "all", "readState", "readPackageJSON", "statePath", "FSExtra", "pathExists", "readJSON"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var patches_exports = {};
|
|
24
|
+
__export(patches_exports, {
|
|
25
|
+
checkPatches: () => checkPatches
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(patches_exports);
|
|
28
|
+
var import_find_node_modules = __toESM(require("find-node-modules"), 1), import_node_path = require("node:path"), import_fs_extra = __toESM(require("fs-extra"), 1);
|
|
29
|
+
const patches = [
|
|
30
|
+
{
|
|
31
|
+
module: "react-native-screens",
|
|
32
|
+
patchFile: "react-native-screens+3.22.1.patch"
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
async function checkPatches(options) {
|
|
36
|
+
if (options.state.applyPatches === !1)
|
|
37
|
+
return;
|
|
38
|
+
const nodeModulesDirs = (0, import_find_node_modules.default)({
|
|
39
|
+
cwd: options.root
|
|
40
|
+
}).map((relativePath) => (0, import_node_path.join)(options.root, relativePath)), patchesToCopy = /* @__PURE__ */ new Set();
|
|
41
|
+
await Promise.all(
|
|
42
|
+
patches.flatMap((patch) => nodeModulesDirs.flatMap(async (dir) => {
|
|
43
|
+
await import_fs_extra.default.pathExists((0, import_node_path.join)(dir, patch.module)) && patchesToCopy.add(patch);
|
|
44
|
+
}))
|
|
45
|
+
);
|
|
46
|
+
let didCopy = !1;
|
|
47
|
+
for (const patch of [...patchesToCopy]) {
|
|
48
|
+
const dest = (0, import_node_path.join)(options.userPatchesDir, patch.patchFile);
|
|
49
|
+
if (!await import_fs_extra.default.pathExists(dest)) {
|
|
50
|
+
didCopy = !0, console.info(`Copying patch ${patch.module}`);
|
|
51
|
+
const src = (0, import_node_path.join)(options.internalPatchesDir, patch.patchFile);
|
|
52
|
+
await import_fs_extra.default.copy(src, dest);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
didCopy && (console.info(
|
|
56
|
+
`
|
|
57
|
+
Please restart after applying the patch by running "npx patch-package".
|
|
58
|
+
Ideally add it to your devDependencies and as a postinstall script.
|
|
59
|
+
`
|
|
60
|
+
), process.exit(0));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=patches.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/patches.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAA4B,0CAC5B,mBAAqB,sBACrB,kBAAoB;AAGpB,MAAM,UAAU;AAAA,EACd;AAAA,IACE,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AACF;AAGA,eAAsB,aAAa,SAA2B;AAC5D,MAAI,QAAQ,MAAM,iBAAiB;AACjC;AAGF,QAAM,sBAAkB,yBAAAA,SAAgB;AAAA,IACtC,KAAK,QAAQ;AAAA,EACf,CAAC,EAAE,IAAI,CAAC,qBAAiB,uBAAK,QAAQ,MAAM,YAAY,CAAC,GAEnD,gBAAgB,oBAAI,IAAW;AAErC,QAAM,QAAQ;AAAA,IACZ,QAAQ,QAAQ,CAAC,UACR,gBAAgB,QAAQ,OAAO,QAAQ;AAC5C,MAAI,MAAM,gBAAAC,QAAQ,eAAW,uBAAK,KAAK,MAAM,MAAM,CAAC,KAClD,cAAc,IAAI,KAAK;AAAA,IAE3B,CAAC,CACF;AAAA,EACH;AAEA,MAAI,UAAU;AAEd,aAAW,SAAS,CAAC,GAAG,aAAa,GAAG;AACtC,UAAM,WAAO,uBAAK,QAAQ,gBAAgB,MAAM,SAAS;AACzD,QAAI,CAAE,MAAM,gBAAAA,QAAQ,WAAW,IAAI,GAAI;AACrC,gBAAU,IACV,QAAQ,KAAK,iBAAiB,MAAM,MAAM,EAAE;AAC5C,YAAM,UAAM,uBAAK,QAAQ,oBAAoB,MAAM,SAAS;AAC5D,YAAM,gBAAAA,QAAQ,KAAK,KAAK,IAAI;AAAA,IAC9B;AAAA,EACF;AAEA,EAAI,YACF,QAAQ;AAAA,IACN;AAAA;AAAA;AAAA;AAAA,EAEF,GACA,QAAQ,KAAK,CAAC;AAElB;",
|
|
5
|
+
"names": ["findNodeModules", "FSExtra"]
|
|
6
|
+
}
|