File tree
Expand file treeCollapse file tree1 file changed
+12
-1
lines changed Expand file treeCollapse file tree1 file changed
+12
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 |
| -echo "Building Extension..." |
| 3 | +echo "Checking Node version..." |
| 4 | +nodeVersion="$(node --version)" |
| 5 | +requiredNodeVersion="16.0.0" |
| 6 | +if [ "$(printf '%s\n' "$requiredNodeVersion" "${nodeVersion##v}" | sort -V | head -n1)" = "$requiredNodeVersion" ]; then |
| 7 | +echo "Using Node ${nodeVersion}" |
| 8 | +else |
| 9 | +echo "Build requires Node ${requiredNodeVersion} or above but using ${nodeVersion##v}" |
| 10 | +exit 1 |
| 11 | +fi |
| 12 | + |
| 13 | + |
| 14 | +echo "Building extension..." |
4 | 15 | tsc -v
|
5 | 16 |
|
6 | 17 | # remove build directory
|
|
You can’t perform that action at this time.
0 commit comments