@xapps-platform/cli 0.1.1 → 0.1.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/README.md CHANGED
@@ -63,6 +63,7 @@ npm install -D @xapps-platform/cli
63
63
  Note:
64
64
 
65
65
  - This package is now in first public release-candidate shape for the supported non-breaking publish subset.
66
+ - First public release is cut as `@xapps-platform/cli@0.1.1` for that supported subset.
66
67
  - This README documents only that supported external contract; it does not claim the whole CLI surface is public/stable.
67
68
 
68
69
  ## Commands (baseline)
package/dist/cli.cjs CHANGED
@@ -4789,7 +4789,10 @@ async function runCli(argv) {
4789
4789
  throw new CliError(code, message);
4790
4790
  }
4791
4791
  }
4792
- if (/(?:^|[\\/])cli\.(?:cjs|mjs|js)$/.test(String(process.argv[1] || ""))) {
4792
+ function shouldAutoRunCliEntrypoint(filePath) {
4793
+ return /(?:^|[\\/])(?:xapps|cli(?:\.(?:cjs|mjs|js))?)$/.test(String(filePath || ""));
4794
+ }
4795
+ if (shouldAutoRunCliEntrypoint(String(process.argv[1] || ""))) {
4793
4796
  runCli(process.argv.slice(2)).catch((err) => {
4794
4797
  const code = typeof err?.code === "string" ? err.code : "CLI_RUNTIME_ERROR";
4795
4798
  const message = err?.message || String(err);