Commit fed7681
authored
fix(cli): report package version from --version instead of hardcoded 1.0.0 (#320)
commander was wired to a literal '1.0.0' that predated the version scheme,
so --version reported the wrong build. Read version from package.json via
createRequire, matching the pattern in ec2-demo.mjs.
Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>1 parent a380eb1 commit fed7681
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments