@wipcomputer/wip-release 1.9.31 → 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.
- package/cli.js +9 -0
- 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