@starlens-app/cli 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.mjs +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starlens-app/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Starlens CLI — manage your GitHub starred repositories from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.mjs CHANGED
@@ -1151,7 +1151,9 @@ async function runInstallSkillWizard(args, env) {
1151
1151
  }
1152
1152
  }
1153
1153
 
1154
- if (import.meta.url === `file://${process.argv[1]}`) {
1154
+ import { realpathSync } from "node:fs";
1155
+ const _realArgv1 = (() => { try { return realpathSync(process.argv[1]); } catch { return process.argv[1]; } })();
1156
+ if (import.meta.url === `file://${_realArgv1}`) {
1155
1157
  main().catch((error) => {
1156
1158
  console.error(error instanceof CliError ? error.message : error.stack || error.message);
1157
1159
  process.exitCode = error.exitCode ?? 1;