[Pkg-javascript-commits] [node-buble] 02/03: Break 'require' loop

Julien Puydt julien.puydt at laposte.net
Wed Sep 20 08:00:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-buble.

commit 79e2111767237574341434f10de7bab9c0c1a92a
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Sep 19 18:36:49 2017 +0200

    Break 'require' loop
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 2459363..93920c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,8 @@ override_dh_auto_build: dist $(TARGETS)
 	sed -i dist/program/types/index.js -e "s/\\$$//g"
 	sed -i dist/index.js -e "s/acorn\([^ ]*\)\[\"default\"\]/acorn\1/g"
 	sed -i dist/index.js -e "s|json\\$$\\$$.VERSION|json\\$$\\$$.version|g"
+	# the next one moves the requires after the exports to break a loop
+	sed -i dist/program/wrap.js -e '2{h;d};$${p;g}'
 	sed -i bin/runBuble.js -e "s|../dist/buble.deps.js|../dist/index.js|"
 
 dist:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-buble.git



More information about the Pkg-javascript-commits mailing list