@artifactshare/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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1 @@
1
- import { Agent } from "undici";
2
-
3
- //#region src/api.d.ts
4
- declare function apiUrl(path: string, baseUrl: string): URL;
5
- //#endregion
6
- export { apiUrl };
1
+ export { };
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  import { chmod, lstat, mkdir, mkdtemp, readFile, readdir, rename, rm, rmdir, stat, writeFile } from "node:fs/promises";
3
- import { pathToFileURL } from "node:url";
4
3
  import { cli, define, lazy } from "gunshi";
5
4
  import { Agent } from "undici";
6
5
  import { spawn } from "node:child_process";
@@ -2540,9 +2539,6 @@ function parentCommandRunner(command) {
2540
2539
  }
2541
2540
  //#endregion
2542
2541
  //#region src/index.ts
2543
- function isCliEntrypoint() {
2544
- return Boolean(process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href);
2545
- }
2546
2542
  async function main(rawArgv) {
2547
2543
  const argv = joinLeadingDashValues(rawArgv);
2548
2544
  const command = commandNameFromArgv(argv);
@@ -3151,11 +3147,9 @@ const doctorDefinition = define({
3151
3147
  toKebab: true,
3152
3148
  args: commonArgs
3153
3149
  });
3154
- if (isCliEntrypoint()) {
3155
- const cliArgv = process.argv.slice(2);
3156
- main(cliArgv).catch((error) => {
3157
- writeFailure("unknown", unexpectedError(error), outputModeFromArgv(cliArgv), 1);
3158
- });
3159
- }
3150
+ const cliArgv = process.argv.slice(2);
3151
+ main(cliArgv).catch((error) => {
3152
+ writeFailure("unknown", unexpectedError(error), outputModeFromArgv(cliArgv), 1);
3153
+ });
3160
3154
  //#endregion
3161
- export { apiUrl };
3155
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Publish and update Artifact Share artifacts from terminals, AI agents, and CI.",
5
5
  "homepage": "https://artifactshare.com/connect",
6
6
  "license": "Apache-2.0",