MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / runPrepareScript

Function runPrepareScript

Example/e2etest/e2e/globalSetup.ts:66–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64}
65
66function runPrepareScript() {
67 const prepareScript = path.join(
68 projectRoot,
69 'scripts/run-prepare-local-update-artifacts.js',
70 );
71
72 const result = spawnSync(process.execPath, [prepareScript], {
73 // Use Node here because the local CLI depends on native addons that are
74 // built for Node rather than Bun.
75 cwd: projectRoot,
76 stdio: 'inherit',
77 env: process.env,
78 });
79
80 if (result.status !== 0) {
81 throw new Error(
82 `Failed to prepare local update artifacts, exit code: ${result.status}`,
83 );
84 }
85}
86
87function ensurePreparedArtifacts(platform: string) {
88 const manifestPath = path.join(artifactsRoot, platform, 'manifest.json');

Callers 1

globalSetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected