Add descriptive error handling to CustomCommand, update README, fix Uninstall Emoji that was rendering incorrectly, fix Item Editor line color for consistency, fix version number display

This commit is contained in:
Matthew Breedlove committed 2025-08-17 20:15:54 -04:00
1 parent 990fdf3d54
commit 7782e8b455
7 files changed
+91 -13

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bun
import {
readFileSync,
writeFileSync
} from 'fs';
import { join } from 'path';
interface PackageJson {
version: string;
[key: string]: unknown;
}
// Read package.json to get version
const packageJson = JSON.parse(readFileSync('package.json', 'utf-8')) as PackageJson;
const version = packageJson.version;
// Read the bundled file
const bundledFilePath = join('dist', 'ccstatusline.js');
let bundledContent = readFileSync(bundledFilePath, 'utf-8');
// Replace the placeholder with the actual version
bundledContent = bundledContent.replace(/__PACKAGE_VERSION__/g, version);
// Write back the modified content
writeFileSync(bundledFilePath, bundledContent);
console.log(`✓ Replaced version placeholder with ${version}`);