1
0
Fork 0

package.json.in: @types/node: Use installed node version

This will ensure that the right API version is installed.
master
Mike Gerwitz 2019-11-07 16:23:27 -05:00
parent 365fe702cf
commit 2bdcacd11f
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,11 @@ AC_CHECK_PROGS(NODE, [node nodejs])
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])
# 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": "~4.9",
"@types/node": "@NODE_VERSION@",
"chai": ">=1.9.1 < 4",
"@types/chai": ">=1.9.1 < 4",
"chai-as-promised": "7.1.0",