[Pkg-javascript-commits] [node-rollup-plugin-json] 01/01: Improve exports

Julien Puydt julien.puydt at laposte.net
Fri Sep 8 05:28:05 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-rollup-plugin-json.

commit 257e4df4c3cbdf904035bda40e5d858992528a8e
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Fri Sep 8 06:37:01 2017 +0200

    Improve exports
---
 debian/changelog | 6 ++++++
 debian/rules     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index fabcf57..85781f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rollup-plugin-json (2.3.0-2) unstable; urgency=medium
+
+  * Improve exports.
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Fri, 08 Sep 2017 06:54:58 +0200
+
 node-rollup-plugin-json (2.3.0-1) unstable; urgency=low
 
   * Initial release (Closes: #867334)
diff --git a/debian/rules b/debian/rules
index 6dc713d..791bb50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 
 override_dh_auto_build:
 	compile-modules convert -f commonjs -I/usr/lib/nodejs src/index.js > index.js
-	sed -i index.js -e "s/\"default\"/\"json\"/g"
+	sed -i index.js -e "s/exports.*/module.exports = json;/g"
 
 override_dh_auto_clean:
 	rm -f index.js

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



More information about the Pkg-javascript-commits mailing list