@wipcomputer/wip-release 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/cli.js +9 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -98,6 +98,15 @@ let notesSource = (notes !== null && notes !== undefined && notes !== '') ? 'fla
98
98
  }
99
99
  }
100
100
 
101
+ if (args.includes('--version') || args.includes('-v')) {
102
+ const { readFileSync } = await import('node:fs');
103
+ const { join, dirname } = await import('node:path');
104
+ const { fileURLToPath } = await import('node:url');
105
+ const pkg = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), 'package.json'), 'utf8'));
106
+ console.log(pkg.version);
107
+ process.exit(0);
108
+ }
109
+
101
110
  if (!level || args.includes('--help') || args.includes('-h')) {
102
111
  const cwd = process.cwd();
103
112
  let current = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-release",
3
- "version": "1.9.30",
3
+ "version": "1.9.33",
4
4
  "type": "module",
5
5
  "description": "One-command release pipeline. Bumps version, updates changelog + SKILL.md, publishes to npm + GitHub.",
6
6
  "main": "core.mjs",