@jaydenfyi/diffx 0.0.2 → 0.0.4

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/bin.mjs CHANGED
@@ -1,16 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as handleError, t as diffxCommand } from "./command-CWAThFBF.mjs";
3
+ import { createRequire } from "node:module";
3
4
  import { cli } from "gunshi";
4
5
 
5
6
  //#region src/bin.ts
6
7
  /**
7
8
  * CLI entry point for diffx
8
9
  */
10
+ const { version } = createRequire(import.meta.url)("../package.json");
9
11
  const argv = process.argv.slice(2);
10
12
  try {
11
13
  await cli(argv, diffxCommand, {
12
14
  name: "diffx",
13
- version: "0.1.0"
15
+ version
14
16
  });
15
17
  } catch (error) {
16
18
  const diffxError = handleError(error);
package/dist/bin.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * CLI entry point for diffx\n */\n\nimport { cli } from \"gunshi\";\nimport { diffxCommand } from \"./cli/command\";\nimport { handleError } from \"./errors/error-handler\";\n\n// Run the CLI\nconst argv = process.argv.slice(2);\n\ntry {\n\tawait cli(argv, diffxCommand, {\n\t\tname: \"diffx\",\n\t\tversion: \"0.1.0\",\n\t});\n} catch (error) {\n\tconst diffxError = handleError(error);\n\tconsole.error(`Error: ${diffxError.message}`);\n\tprocess.exit(diffxError.exitCode);\n}\n"],"mappings":";;;;;;;;AAUA,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAElC,IAAI;AACH,OAAM,IAAI,MAAM,cAAc;EAC7B,MAAM;EACN,SAAS;EACT,CAAC;SACM,OAAO;CACf,MAAM,aAAa,YAAY,MAAM;AACrC,SAAQ,MAAM,UAAU,WAAW,UAAU;AAC7C,SAAQ,KAAK,WAAW,SAAS"}
1
+ {"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * CLI entry point for diffx\n */\n\nimport { cli } from \"gunshi\";\nimport { diffxCommand } from \"./cli/command\";\nimport { handleError } from \"./errors/error-handler\";\nimport { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\nconst { version } = require(\"../package.json\");\n\n// Run the CLI\nconst argv = process.argv.slice(2);\n\ntry {\n\tawait cli(argv, diffxCommand, {\n\t\tname: \"diffx\",\n\t\tversion,\n\t});\n} catch (error) {\n\tconst diffxError = handleError(error);\n\tconsole.error(`Error: ${diffxError.message}`);\n\tprocess.exit(diffxError.exitCode);\n}\n"],"mappings":";;;;;;;;;AAWA,MAAM,EAAE,YADQ,cAAc,OAAO,KAAK,IAAI,CAClB,kBAAkB;AAG9C,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAElC,IAAI;AACH,OAAM,IAAI,MAAM,cAAc;EAC7B,MAAM;EACN;EACA,CAAC;SACM,OAAO;CACf,MAAM,aAAa,YAAY,MAAM;AACrC,SAAQ,MAAM,UAAU,WAAW,UAAU;AAC7C,SAAQ,KAAK,WAAW,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaydenfyi/diffx",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A CLI tool for generating filtered Git diffs/patches with GitHub PR support",
5
5
  "keywords": [
6
6
  "cli",