We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7e23a9 commit 2b3a672Copy full SHA for 2b3a672
scripts/build.sh
@@ -1,6 +1,17 @@
1
#!/bin/bash
2
3
-echo "Building Extension..."
+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..."
15
tsc -v
16
17
# remove build directory
0 commit comments