[Pkg-javascript-commits] [node-buble] 01/03: Fix exports

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 60056f0bf32492c54fe5eb49ce5f01d249ac96b0
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Sep 19 01:39:47 2017 +0200

    Fix exports
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 1a9bbfd..2459363 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,10 @@ COMPILE_MODULES = compile-modules convert -f commonjs
 
 %.js:
 	$(COMPILE_MODULES) $(subst dist, src, $@) > $@
+	sed -i $@ -e "s/exports\[\"default\"\]/module.exports/g"
+	sed -i $@ -e "s/\[\"default\"\]//g"
+	sed -i $@ -e "s/string\")/string\").default/g"
+	sed -i $@ -e "s/\\$$//g"
 
 %:
 	dh $@

-- 
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