@xapps-platform/cli 0.1.1 → 0.1.3
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 +1 -0
- package/dist/cli.cjs +4 -1
- package/dist/cli.cjs.map +2 -2
- package/package.json +2 -2
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
|
+
- Current published patch line is `@xapps-platform/cli@0.1.2` 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
|
-
|
|
4792
|
+
function shouldAutoRunCliEntrypoint(filePath) {
|
|
4793
|
+
return /(?:^|[\\/])(?:xapps|cli(?:\.(?:cts|mts|ts|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);
|