peachsim 0.1.1980 → 0.1.1982
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-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +25 -8
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +24 -7
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +25 -8
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +25 -8
- package/dist-lib/swift-compile.cjs +22 -5
- package/dist-lib/swift-compile.mjs +22 -5
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +23 -6
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/package.json +1 -1
- package/src/swift-compile.ts +21 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -11842,7 +11842,7 @@ function swiftModuleDigest(root) {
|
|
|
11842
11842
|
return digest;
|
|
11843
11843
|
}
|
|
11844
11844
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
11845
|
-
return createHash13("sha256").update(
|
|
11845
|
+
return createHash13("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
11846
11846
|
}
|
|
11847
11847
|
var SYSTEM_MODULE_LIBRARIES = {
|
|
11848
11848
|
"sqlite3.h": "sqlite3",
|
|
@@ -12359,7 +12359,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12359
12359
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12360
12360
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12361
12361
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12362
|
-
var compilerSourceDigest = true ? "
|
|
12362
|
+
var compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12363
12363
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12364
12364
|
const hash = createHash13("sha256");
|
|
12365
12365
|
hash.update(`swift-compile
|
|
@@ -16255,7 +16255,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
16255
16255
|
if (!wanted.has(name2) && name2 !== skip)
|
|
16256
16256
|
rmSync6(path27.join(target, name2), { recursive: true, force: true });
|
|
16257
16257
|
}
|
|
16258
|
-
function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
16258
|
+
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
16259
16259
|
if (!slot) return moduleRoot;
|
|
16260
16260
|
const staged = path27.join(slot, "source");
|
|
16261
16261
|
const stagedModule = path27.join(staged, "packages", path27.basename(moduleRoot));
|
|
@@ -16266,6 +16266,16 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
16266
16266
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
16267
16267
|
path27.join(staged, "packages/peachsim/sdk/ios")
|
|
16268
16268
|
);
|
|
16269
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
16270
|
+
if (!file.startsWith("../")) continue;
|
|
16271
|
+
const from = path27.resolve(moduleRoot, file);
|
|
16272
|
+
const to = path27.resolve(stagedModule, file);
|
|
16273
|
+
if (existsSync4(to) && readFileSync16(from).equals(readFileSync16(to))) continue;
|
|
16274
|
+
mkdirSync6(path27.dirname(to), { recursive: true });
|
|
16275
|
+
copyFileSync(from, to);
|
|
16276
|
+
}
|
|
16277
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
16278
|
+
throw new Error("Swift staged framework source differs from the caller");
|
|
16269
16279
|
const modules = path27.join(staged, "node_modules");
|
|
16270
16280
|
const target = realpathSync5(path27.join(moduleRoot, "../../node_modules"));
|
|
16271
16281
|
if (!existsSync4(modules) || readlinkSync(modules) !== target) {
|
|
@@ -16442,7 +16452,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16442
16452
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
16443
16453
|
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
16444
16454
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
16445
|
-
const frameworkRoot = stageFrameworkSource(
|
|
16455
|
+
const frameworkRoot = stageFrameworkSource(
|
|
16456
|
+
moduleRoot,
|
|
16457
|
+
slot,
|
|
16458
|
+
frameworkKey,
|
|
16459
|
+
options.release
|
|
16460
|
+
);
|
|
16461
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
16462
|
+
throw new Error("Swift staged project source differs from the caller");
|
|
16446
16463
|
report("preparing compiler plugins");
|
|
16447
16464
|
const pluginsFor = (pluginLease) => ensureMacroPlugins(
|
|
16448
16465
|
frameworkRoot,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -16267,7 +16267,7 @@ function swiftModuleDigest(root) {
|
|
|
16267
16267
|
return digest;
|
|
16268
16268
|
}
|
|
16269
16269
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
16270
|
-
return (0, import_node_crypto13.createHash)("sha256").update(
|
|
16270
|
+
return (0, import_node_crypto13.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
16271
16271
|
}
|
|
16272
16272
|
var SYSTEM_MODULE_LIBRARIES = {
|
|
16273
16273
|
"sqlite3.h": "sqlite3",
|
|
@@ -16784,7 +16784,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16784
16784
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16785
16785
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16786
16786
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16787
|
-
var compilerSourceDigest = true ? "
|
|
16787
|
+
var compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16788
16788
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16789
16789
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
16790
16790
|
hash.update(`swift-compile
|
|
@@ -20587,7 +20587,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
20587
20587
|
if (!wanted.has(name3) && name3 !== skip)
|
|
20588
20588
|
(0, import_node_fs26.rmSync)(import_node_path27.default.join(target, name3), { recursive: true, force: true });
|
|
20589
20589
|
}
|
|
20590
|
-
function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
20590
|
+
function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
20591
20591
|
if (!slot) return moduleRoot;
|
|
20592
20592
|
const staged = import_node_path27.default.join(slot, "source");
|
|
20593
20593
|
const stagedModule = import_node_path27.default.join(staged, "packages", import_node_path27.default.basename(moduleRoot));
|
|
@@ -20598,6 +20598,16 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey) {
|
|
|
20598
20598
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
20599
20599
|
import_node_path27.default.join(staged, "packages/peachsim/sdk/ios")
|
|
20600
20600
|
);
|
|
20601
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
20602
|
+
if (!file.startsWith("../")) continue;
|
|
20603
|
+
const from = import_node_path27.default.resolve(moduleRoot, file);
|
|
20604
|
+
const to = import_node_path27.default.resolve(stagedModule, file);
|
|
20605
|
+
if ((0, import_node_fs26.existsSync)(to) && (0, import_node_fs26.readFileSync)(from).equals((0, import_node_fs26.readFileSync)(to))) continue;
|
|
20606
|
+
(0, import_node_fs26.mkdirSync)(import_node_path27.default.dirname(to), { recursive: true });
|
|
20607
|
+
(0, import_node_fs26.copyFileSync)(from, to);
|
|
20608
|
+
}
|
|
20609
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
20610
|
+
throw new Error("Swift staged framework source differs from the caller");
|
|
20601
20611
|
const modules = import_node_path27.default.join(staged, "node_modules");
|
|
20602
20612
|
const target = (0, import_node_fs26.realpathSync)(import_node_path27.default.join(moduleRoot, "../../node_modules"));
|
|
20603
20613
|
if (!(0, import_node_fs26.existsSync)(modules) || (0, import_node_fs26.readlinkSync)(modules) !== target) {
|
|
@@ -20774,7 +20784,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20774
20784
|
const frameworkScratch = swiftFrameworkScratch(frameworkKey);
|
|
20775
20785
|
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work);
|
|
20776
20786
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
20777
|
-
const frameworkRoot = stageFrameworkSource(
|
|
20787
|
+
const frameworkRoot = stageFrameworkSource(
|
|
20788
|
+
moduleRoot,
|
|
20789
|
+
slot,
|
|
20790
|
+
frameworkKey,
|
|
20791
|
+
options.release
|
|
20792
|
+
);
|
|
20793
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
20794
|
+
throw new Error("Swift staged project source differs from the caller");
|
|
20778
20795
|
report("preparing compiler plugins");
|
|
20779
20796
|
const pluginsFor = (pluginLease) => ensureMacroPlugins(
|
|
20780
20797
|
frameworkRoot,
|
|
@@ -29738,7 +29755,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29738
29755
|
return hash.digest("hex");
|
|
29739
29756
|
}
|
|
29740
29757
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29741
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29758
|
+
var STANDIN_SOURCE_DIGEST = true ? "5cfe4c5e593a540246f73f905de64026203a300735fd8f8a64343838e88f2bb9" : standinSourceDigest();
|
|
29742
29759
|
|
|
29743
29760
|
// src/swift-standins.ts
|
|
29744
29761
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1982 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -65,6 +65,7 @@ export interface FilterValue {
|
|
|
65
65
|
_colorMatrix?: number[];
|
|
66
66
|
_colorMultiply?: unknown;
|
|
67
67
|
_luminanceToAlpha?: boolean;
|
|
68
|
+
_opaqueBlur?: number;
|
|
68
69
|
_metalShaderEffect?: unknown;
|
|
69
70
|
}
|
|
70
71
|
export interface CssLengthPct {
|
|
@@ -180,6 +181,9 @@ export type ParsedFilterOp = {
|
|
|
180
181
|
} | {
|
|
181
182
|
type: 'blur';
|
|
182
183
|
value: number;
|
|
184
|
+
} | {
|
|
185
|
+
type: 'opaque-blur';
|
|
186
|
+
value: number;
|
|
183
187
|
} | {
|
|
184
188
|
type: 'contrast';
|
|
185
189
|
value: number;
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -738,7 +738,7 @@ export function swiftModuleDigest(root: string): Buffer {
|
|
|
738
738
|
// source revisions need separate object trees, while app edits keep one warm tree.
|
|
739
739
|
export function swiftProjectBuildKey(moduleRoot: string, release: string): string {
|
|
740
740
|
return createHash('sha256')
|
|
741
|
-
.update(
|
|
741
|
+
.update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`)
|
|
742
742
|
.update(swiftModuleDigest(moduleRoot))
|
|
743
743
|
.digest('hex')
|
|
744
744
|
.slice(0, 32)
|
|
@@ -6706,6 +6706,7 @@ function stageFrameworkSource(
|
|
|
6706
6706
|
moduleRoot: string,
|
|
6707
6707
|
slot: string | null,
|
|
6708
6708
|
frameworkKey: string,
|
|
6709
|
+
release: string,
|
|
6709
6710
|
): string {
|
|
6710
6711
|
if (!slot) return moduleRoot
|
|
6711
6712
|
const staged = path.join(slot, 'source')
|
|
@@ -6718,6 +6719,17 @@ function stageFrameworkSource(
|
|
|
6718
6719
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
6719
6720
|
path.join(staged, 'packages/peachsim/sdk/ios'),
|
|
6720
6721
|
)
|
|
6722
|
+
// producer inputs outside the mirrored trees also belong to the snapshot.
|
|
6723
|
+
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
6724
|
+
if (!file.startsWith('../')) continue
|
|
6725
|
+
const from = path.resolve(moduleRoot, file)
|
|
6726
|
+
const to = path.resolve(stagedModule, file)
|
|
6727
|
+
if (existsSync(to) && readFileSync(from).equals(readFileSync(to))) continue
|
|
6728
|
+
mkdirSync(path.dirname(to), { recursive: true })
|
|
6729
|
+
copyFileSync(from, to)
|
|
6730
|
+
}
|
|
6731
|
+
if (swiftProjectBuildKey(stagedModule, release) !== frameworkKey)
|
|
6732
|
+
throw new Error('Swift staged framework source differs from the caller')
|
|
6721
6733
|
// the plugin build resolves the macro scanner from the module's node_modules
|
|
6722
6734
|
const modules = path.join(staged, 'node_modules')
|
|
6723
6735
|
const target = realpathSync(path.join(moduleRoot, '../../node_modules'))
|
|
@@ -6931,7 +6943,14 @@ function compileSwiftProjectOnce(
|
|
|
6931
6943
|
? work(null)
|
|
6932
6944
|
: withSwiftFrameworkSlot(frameworkKey, moduleRoot, options.signal, work)
|
|
6933
6945
|
return withFrameworkLock(async (slot, frameworkLease) => {
|
|
6934
|
-
const frameworkRoot = stageFrameworkSource(
|
|
6946
|
+
const frameworkRoot = stageFrameworkSource(
|
|
6947
|
+
moduleRoot,
|
|
6948
|
+
slot,
|
|
6949
|
+
frameworkKey,
|
|
6950
|
+
options.release,
|
|
6951
|
+
)
|
|
6952
|
+
if (swiftArtifactHash(input, options.release, frameworkRoot) !== hash)
|
|
6953
|
+
throw new Error('Swift staged project source differs from the caller')
|
|
6935
6954
|
report('preparing compiler plugins')
|
|
6936
6955
|
const pluginsFor = (pluginLease?: SwiftRootLease) =>
|
|
6937
6956
|
ensureMacroPlugins(
|