@wipcomputer/wip-readme-format 1.9.30 → 1.9.33

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.
Files changed (2) hide show
  1. package/format.mjs +7 -0
  2. package/package.json +1 -1
package/format.mjs CHANGED
@@ -28,6 +28,13 @@ import { fileURLToPath } from 'node:url';
28
28
  import { detectInterfaces, detectToolbox } from '../wip-universal-installer/detect.mjs';
29
29
 
30
30
  const __dirname = dirname(fileURLToPath(import.meta.url));
31
+
32
+ if (process.argv.includes('--version') || process.argv.includes('-v')) {
33
+ const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf8'));
34
+ console.log(pkg.version);
35
+ process.exit(0);
36
+ }
37
+
31
38
  const args = process.argv.slice(2);
32
39
  const DRY_RUN = args.includes('--dry-run');
33
40
  const CHECK = args.includes('--check');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-readme-format",
3
- "version": "1.9.30",
3
+ "version": "1.9.33",
4
4
  "description": "Reformat any repo's README to follow the WIP Computer standard. Agent-first, human-readable.",
5
5
  "type": "module",
6
6
  "bin": {