This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Commit ee51b39
feat (cli): show error message if minimum node version isn't met (#2132)
* feat cli: show error if min node version isn't met
- Added an error message display if the minimum node version
requirement is not met.
- Exits process with failure code 1.
License: MIT
Signed-off-by: Chirag Shinde <[email protected]>
* fix(cli): show error if min node version isn't met
- moved the version check to top before other `require` statements
- changed `semver.gt` to `semver.satisfies`
License: MIT
Signed-off-by: Chirag Shinde <[email protected]>1 parent 76689ff commit ee51b39
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
23 | | - | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
0 commit comments