summaryrefslogtreecommitdiffstats
path: root/debian/patches/2005_index_build_dont_run_npm.patch
blob: eb20a39e01af902fcd5aedff461d1f01e9bb4add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Do not run cli.js as it depends on many packages.
 Get the version from package.json instead.
Forwarded: https://github.com/isaacs/npm/pull/3873
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2013-09-08
--- a/scripts/doc-build.sh
+++ b/scripts/doc-build.sh
@@ -4,7 +4,7 @@
 dest=$2
 name=$(basename ${src%.*})
 date=$(date -u +'%Y-%M-%d %H:%m:%S')
-version=$(node cli.js -v)
+version=$(nodejs -e "console.log(require('./package').version)")
 
 mkdir -p $(dirname $dest)