Repair missing Effect modules after desktop packaging #4160
Closedjuliusmarmingewants to merge 3 commits into
main fromt3code/fix-bundling-issue-4154opened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
- @@ -0,0 +44,21 @@44+ resolver: ReturnType<typeof NodeModule.createRequire>,45+ packageName: string,46+): Promise<string> {47+ return findPackageRoot(resolver.resolve(packageName), packageName);48+}49+50+export async function repairUnpackedEffectModules(input: {51+ readonly stageAppDir: string;52+ readonly appOutDir: string;53+}): Promise<void> {54+ const stageResolver = NodeModule.createRequire(NodePath.join(input.stageAppDir, "package.json"));55+ const platformNodeRoot = await resolvePackageRoot(stageResolver, "@effect/platform-node");56+ const platformNodeResolver = NodeModule.createRequire(57+ NodePath.join(platformNodeRoot, "package.json"),58+ );59+ const unpackedNodeModules = NodePath.join(60+ input.appOutDir,61+ "resources",62+ "app.asar.unpacked",63+ "node_modules",64+ );
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
078c4995-dd34-4a54-a884-05d27dba891bYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.