[Pkg-javascript-commits] [node-rollup-plugin-replace] 07/08: Improve module exports

Julien Puydt julien.puydt at laposte.net
Fri Sep 8 06:08:50 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-replace.

commit 8146af65bd558be26be7c4603277a85fecb3fe93
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Fri Sep 8 07:53:01 2017 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 515b451..a274d99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ node-rollup-plugin-replace (2.0.0-1) UNRELEASED; urgency=medium
   * Bump d/watch to version 4.
   * Bump std-ver to 4.1.0.
   * Refresh the patch for old nodejs support.
+  * Improve module exports.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Wed, 06 Sep 2017 07:38:47 +0200
 
diff --git a/debian/rules b/debian/rules
index 0c29ac6..70c9abc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@
 
 override_dh_auto_build:
 	compile-modules convert -f commonjs src/index.js > index.js
+	sed -i index.js -e "s/exports.*/module.exports = replace;/g"
 
 override_dh_auto_clean:
 	rm -rf index.js

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



More information about the Pkg-javascript-commits mailing list