Kode-cli/scripts/postinstall.js
CrazyBoyM 487aef295d feat: upgrade to React 19 and Ink 6, fix Windows compatibility
- Upgrade React from 18.3.1 to 19.1.1
- Upgrade Ink from 5.2.1 to 6.2.3
- Fix Windows spawn EINVAL error by removing --tsconfig-raw
- Fix top-level await issues in cli.tsx
- Update build scripts for better Windows support
- Version bump to 1.1.12
2025-08-29 23:48:14 +08:00

19 lines
729 B
JavaScript

#!/usr/bin/env node
// This postinstall is intentionally minimal and cross-platform safe.
// npm/pnpm/yarn already create shims from package.json "bin" fields.
// We avoid attempting to create symlinks or relying on platform-specific tools like `which`/`where`.
function postinstallNotice() {
// Only print informational hints; never fail install.
try {
console.log('✅ @shareai-lab/kode installed. Commands available: kode, kwa, kd');
console.log(' If shell cannot find them, try reloading your terminal or reinstall globally:');
console.log(' npm i -g @shareai-lab/kode (or use: npx @shareai-lab/kode)');
} catch {}
}
if (process.env.npm_lifecycle_event === 'postinstall') {
postinstallNotice();
}