ymmv-cli 0.1.0 → 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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  // src/index.ts
4
4
  import { readFileSync } from "fs";
5
- import { pathToFileURL } from "url";
6
5
 
7
6
  // src/config.ts
8
7
  var BASE = (process.env.YMMV_API ?? "https://ymmv.fyi").replace(/\/+$/, "");
@@ -890,13 +889,9 @@ async function main(argv) {
890
889
  break;
891
890
  }
892
891
  }
893
- var invokedPath = process.argv[1];
894
- if (invokedPath && import.meta.url === pathToFileURL(invokedPath).href) {
895
- main(process.argv.slice(2)).catch((err) => {
896
- console.error(err instanceof Error ? err.message : String(err));
897
- process.exitCode = 1;
898
- });
899
- }
900
- export {
901
- main
902
- };
892
+
893
+ // src/cli.ts
894
+ main(process.argv.slice(2)).catch((err) => {
895
+ console.error(err instanceof Error ? err.message : String(err));
896
+ process.exitCode = 1;
897
+ });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "ymmv-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Publish and diff terminal-native developer tool-stack profiles at ymmv.fyi.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ymmv": "./dist/index.js"
7
+ "ymmv": "./dist/cli.js"
8
8
  },
9
9
  "files": [
10
10
  "dist"