[Pkg-javascript-commits] [node-mocha] 02/03: Use require.resolve to find diff module path
Jérémy Lal
kapouer at moszumanska.debian.org
Sun Jun 1 20:11:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-mocha.
commit 47a26aba8ff724d83d94636c946be70a3abc3b8b
Author: Jérémy Lal <kapouer at melix.org>
Date: Sun Jun 1 14:14:18 2014 +0200
Use require.resolve to find diff module path
---
debian/patches/0001_makefile.patch | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/debian/patches/0001_makefile.patch b/debian/patches/0001_makefile.patch
index 6d512c5..6d08e04 100644
--- a/debian/patches/0001_makefile.patch
+++ b/debian/patches/0001_makefile.patch
@@ -12,14 +12,14 @@ Forwarded: not-needed
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,11 @@
-
+
all: mocha.js
-
+
-lib/browser/diff.js: node_modules/diff/diff.js
- cp node_modules/diff/diff.js lib/browser/diff.js
-+lib/browser/diff.js: /usr/lib/nodejs/diff.js
-+ cp /usr/lib/nodejs/diff.js lib/browser/diff.js
-
++lib/browser/diff.js:
++ cp $(shell nodejs -e "console.log(require.resolve('diff'))") lib/browser/diff.js
+
mocha.js: $(SRC) $(SUPPORT) lib/browser/diff.js
- @node support/compile $(SRC)
+ @nodejs support/compile $(SRC)
@@ -28,10 +28,10 @@ Forwarded: not-needed
_mocha.js \
@@ -35,7 +35,7 @@
test-all: test-bdd test-tdd test-qunit test-exports test-unit test-grep test-jsapi test-compilers test-sort test-glob test-requires test-reporters test-only
-
+
test-jsapi:
- @node test/jsapi
+ @nodejs test/jsapi
-
+
test-unit:
@./bin/mocha \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocha.git
More information about the Pkg-javascript-commits
mailing list