synabun 2026.3.301 → 2026.3.303
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/package.json +1 -1
- package/postinstall.js +5 -6
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -59,7 +59,7 @@ function installDeps(name, dir) {
|
|
|
59
59
|
|
|
60
60
|
info(`Installing ${name} dependencies...`);
|
|
61
61
|
try {
|
|
62
|
-
execSync('npm install', {
|
|
62
|
+
execSync('npm install --omit=dev --ignore-scripts', {
|
|
63
63
|
cwd: dir,
|
|
64
64
|
stdio: 'inherit',
|
|
65
65
|
timeout: 300_000,
|
|
@@ -103,18 +103,17 @@ function buildMcpServer() {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
// dist/ ships pre-built in the npm package — build is a fallback only
|
|
107
|
+
warn('MCP server dist/ not found — attempting build (requires TypeScript)');
|
|
107
108
|
try {
|
|
108
|
-
execSync('
|
|
109
|
+
execSync('npx tsc', {
|
|
109
110
|
cwd: resolve(__dirname, 'mcp-server'),
|
|
110
111
|
stdio: 'pipe',
|
|
111
112
|
timeout: 60_000,
|
|
112
113
|
});
|
|
113
114
|
ok('MCP server built');
|
|
114
115
|
} catch (err) {
|
|
115
|
-
|
|
116
|
-
console.error(err.stderr?.toString() || err.message);
|
|
117
|
-
process.exit(1);
|
|
116
|
+
warn('MCP server build failed (TypeScript not available) — this is OK if dist/ was shipped');
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
|