@gheop/tojiru 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
@@ -110,6 +110,10 @@ MIT — see [LICENSE](LICENSE).
110
110
 
111
111
  ## Changelog
112
112
 
113
+ ### v0.1.2 — Version reporting (2026-06-25)
114
+
115
+ - `tojiru --version` now reads the version from `package.json`, so it always matches the published version
116
+
113
117
  ### v0.1.1 — Scoped package name (2026-06-25)
114
118
 
115
119
  - Published on npm as `@gheop/tojiru` (the unscoped `tojiru` name was taken); the installed command is still `tojiru`
package/dist/version.js CHANGED
@@ -1,2 +1,6 @@
1
- export const VERSION = '0.1.0';
1
+ import { createRequire } from 'node:module';
2
+ // Single source of truth: read the version from package.json (shipped in the
3
+ // published tarball) so `--version` always matches the package version.
4
+ const pkg = createRequire(import.meta.url)('../package.json');
5
+ export const VERSION = pkg.version;
2
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,6EAA6E;AAC7E,wEAAwE;AACxE,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAwB,CAAA;AACpF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gheop/tojiru",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Turn a fixed-page document (PDF, comic, DjVu) into a static web reader",
5
5
  "type": "module",
6
6
  "bin": {