fix: add cli shebang, improve cjs compatibility, exit if target source not found

This commit is contained in:
Vitaly Gashkov
2025-03-27 18:23:20 +05:00
parent baac0bcc23
commit 82f62706b6
3 changed files with 11 additions and 9 deletions
Regular → Executable
+4 -4
View File
@@ -1,5 +1,5 @@
import { extractSecrets } from './crunchys';
#!/usr/bin/env node
(async () => {
await extractSecrets();
})();
const { extractSecrets } = require('./crunchys');
extractSecrets();