@sdlcai/setup 0.3.6 → 0.3.7

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/bin/cli.mjs +5 -0
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -109,6 +109,11 @@ Examples:
109
109
  function main() {
110
110
  const argv = process.argv.slice(2);
111
111
  const asset = argv[0];
112
+ if (asset === '--version' || asset === '-v') {
113
+ const { version } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
114
+ console.log(version);
115
+ process.exit(0);
116
+ }
112
117
  if (!asset || asset === '-h' || asset === '--help') help(asset ? 0 : 1);
113
118
 
114
119
  const target = ASSETS[asset];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdlcai/setup",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "One-command bootstrap for private Avanade dev-tool assets (AVA agents, mnemo, …): GitHub browser login + Avanade-Region-ICEG access gate + install.",
5
5
  "type": "module",
6
6
  "bin": {