Skip to content

Commit 3b0750d

Browse files
authored
fix: fix release pipeline (#1322)
1 parent 74b63d0 commit 3b0750d

3 files changed

Lines changed: 70 additions & 38 deletions

File tree

apps/code/forge.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,15 @@ const config: ForgeConfig = {
209209
// Build native modules for DMG maker on Node.js 22
210210
const modules = ["macos-alias", "fs-xattr"];
211211

212-
for (const module of modules) {
213-
const modulePath = `node_modules/${module}`;
214-
if (existsSync(modulePath)) {
215-
console.log(`Building native module: ${module}`);
212+
for (const mod of modules) {
213+
const candidates = [
214+
path.join("node_modules", mod),
215+
path.resolve("../../node_modules", mod),
216+
];
217+
const modulePath = candidates.find((p) => existsSync(p));
218+
219+
if (modulePath) {
220+
console.log(`Building native module: ${mod} (${modulePath})`);
216221
execSync("npm install", { cwd: modulePath, stdio: "inherit" });
217222
}
218223
}

apps/code/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"@types/react-dom": "^19.1.0",
6666
"@vitejs/plugin-react": "^4.2.1",
6767
"@vitest/ui": "^4.0.10",
68+
"adm-zip": "^0.5.16",
6869
"autoprefixer": "^10.4.17",
6970
"drizzle-kit": "^0.31.9",
7071
"electron": "^41.0.0",
@@ -115,13 +116,13 @@
115116
"@dnd-kit/react": "^0.1.21",
116117
"@lezer/common": "^1.5.1",
117118
"@lezer/highlight": "^1.2.3",
119+
"@modelcontextprotocol/ext-apps": "^1.1.2",
120+
"@modelcontextprotocol/sdk": "^1.12.1",
118121
"@opentelemetry/api-logs": "^0.208.0",
119122
"@opentelemetry/exporter-logs-otlp-http": "^0.208.0",
120123
"@opentelemetry/resources": "^2.5.0",
121124
"@opentelemetry/sdk-logs": "^0.208.0",
122125
"@opentelemetry/semantic-conventions": "^1.39.0",
123-
"@modelcontextprotocol/ext-apps": "^1.1.2",
124-
"@modelcontextprotocol/sdk": "^1.12.1",
125126
"@parcel/watcher": "^2.5.1",
126127
"@phosphor-icons/react": "^2.1.10",
127128
"@posthog/agent": "workspace:*",

0 commit comments

Comments
 (0)