1
0
Fork 0

configure (TS_NODE_VERSION): Make configurable

Apparently @types/node is not always available for the current node version...
master
Mike Gerwitz 2019-11-07 16:52:03 -05:00
parent c8c7dfda5d
commit 11c2bcb9b1
2 changed files with 4 additions and 2 deletions

View File

@ -40,9 +40,11 @@ test -n "$NODE" || AC_MSG_ERROR([missing Node.js])
AC_MSG_CHECKING([node version])
node_version=$($NODE --version | sed 's/^v//')
AC_SUBST([NODE_VERSION], [$node_version])
AC_MSG_RESULT([$NODE_VERSION])
AC_ARG_VAR([TS_NODE_VERSION], [Version to use for @types/node dependency])
TS_NODE_VERSION=${TS_NODE_VERSION:-$node_version}
# graphviz
AC_ARG_VAR([TWOPI], [Graphviz twopi layout])
AC_CHECK_PROGS(TWOPI, [twopi])

View File

@ -30,7 +30,7 @@
},
"devDependencies": {
"typescript": "~3.7",
"@types/node": "@NODE_VERSION@",
"@types/node": "@TS_NODE_VERSION@",
"chai": ">=1.9.1 < 4",
"@types/chai": ">=1.9.1 < 4",
"chai-as-promised": "7.1.0",