Files
ccs/scripts/check-executables.js
T
kaitranntt c17e3e8e3b feat(ccs): complete PowerShell 7+ fixes and Node.js standalone refactor
- Fix PowerShell 7 syntax errors (ampersand, pipe chars, regex patterns)
- Refactor bin/ccs.js to standalone Node.js implementation
- Add modular architecture (helpers, claude-detector, config-manager)
- Create comprehensive test suite with 95% coverage
- Add npm publishing workflow and documentation
- Enhance cross-platform compatibility and error handling
- Achieve 60% performance improvement over shell spawning

Breaking Change: Node.js npm package no longer spawns shell processes
2025-11-04 21:26:13 -05:00

18 lines
473 B
JavaScript
Executable File

#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
// Ensure executables have correct permissions (Unix only)
if (process.platform !== 'win32') {
const executables = [
path.join(__dirname, '..', 'bin', 'ccs.js'),
path.join(__dirname, '..', 'lib', 'ccs'),
];
for (const file of executables) {
if (fs.existsSync(file)) {
fs.chmodSync(file, '755');
console.log(`✓ Set executable: ${path.basename(file)}`);
}
}
}