@dzhng/crm.cli 0.3.0 → 0.3.2
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/dist/cli.js +8 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2622,6 +2622,7 @@ import {
|
|
|
2622
2622
|
existsSync as existsSync3,
|
|
2623
2623
|
mkdirSync as mkdirSync4,
|
|
2624
2624
|
readFileSync as readFileSync2,
|
|
2625
|
+
realpathSync,
|
|
2625
2626
|
unlinkSync,
|
|
2626
2627
|
writeFileSync as writeFileSync3
|
|
2627
2628
|
} from "node:fs";
|
|
@@ -3257,8 +3258,12 @@ function ensureDir2(dir) {
|
|
|
3257
3258
|
}
|
|
3258
3259
|
function getDaemonArgs() {
|
|
3259
3260
|
const script = process.argv[1];
|
|
3260
|
-
if (script
|
|
3261
|
-
return [
|
|
3261
|
+
if (!script) {
|
|
3262
|
+
return [];
|
|
3263
|
+
}
|
|
3264
|
+
const resolved = realpathSync(script);
|
|
3265
|
+
if (/\.[tj]s$/.test(resolved)) {
|
|
3266
|
+
return [resolved];
|
|
3262
3267
|
}
|
|
3263
3268
|
return [];
|
|
3264
3269
|
}
|
|
@@ -5420,7 +5425,7 @@ if (process.argv[1]?.endsWith("fuse-daemon.ts")) {
|
|
|
5420
5425
|
|
|
5421
5426
|
// src/cli.ts
|
|
5422
5427
|
var program = new Command;
|
|
5423
|
-
program.name("crm").description("Headless CLI-first CRM").version("0.3.
|
|
5428
|
+
program.name("crm").description("Headless CLI-first CRM").version("0.3.2");
|
|
5424
5429
|
program.exitOverride();
|
|
5425
5430
|
registerContactCommands(program);
|
|
5426
5431
|
registerCompanyCommands(program);
|