[Pkg-javascript-commits] [node-rollup-plugin-string] 01/06: Use rollup --- like upstream
Julien Puydt
julien.puydt at laposte.net
Sun Feb 25 09:18:22 UTC 2018
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-string.
commit e925f5fa962174e8efc00fcdf849061abf32fb21
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Sun Feb 25 09:57:52 2018 +0100
Use rollup --- like upstream
---
debian/changelog | 6 ++++++
debian/control | 2 +-
debian/install | 2 +-
debian/links | 1 +
debian/patches/refresh_rollup_config.patch | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 +---
7 files changed, 40 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 315b671..f3f76ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rollup-plugin-string (2.0.2-3) UNRELEASED; urgency=medium
+
+ * Use rollup -- like upstream.
+
+ -- Julien Puydt <julien.puydt at laposte.net> Sun, 25 Feb 2018 09:45:55 +0100
+
node-rollup-plugin-string (2.0.2-2) unstable; urgency=medium
* Improve module exports.
diff --git a/debian/control b/debian/control
index a9638f2..0bd904d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: web
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Julien Puydt <julien.puydt at laposte.net>
-Build-Depends: debhelper (>= 10), nodejs, node-es6-module-transpiler, node-rollup-pluginutils
+Build-Depends: debhelper (>= 10), nodejs, node-rollup-pluginutils, rollup
Standards-Version: 4.1.0
Homepage: https://github.com/TrySound/rollup-plugin-string
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-rollup-plugin-string.git
diff --git a/debian/install b/debian/install
index 074c7fb..6bb0877 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
package.json usr/lib/nodejs/rollup-plugin-string/
-dist/index.js usr/lib/nodejs/rollup-plugin-string/
+dist/rollup-plugin-string.js usr/lib/nodejs/rollup-plugin-string/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..c056625
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/rollup-plugin-string/rollup-plugin-string.js usr/lib/nodejs/rollup-plugin-string/index.js
diff --git a/debian/patches/refresh_rollup_config.patch b/debian/patches/refresh_rollup_config.patch
new file mode 100644
index 0000000..8de7d3e
--- /dev/null
+++ b/debian/patches/refresh_rollup_config.patch
@@ -0,0 +1,29 @@
+Description: update the rollup config to new versions
+Author: Julien Puydt
+Forwarded: no
+
+--- a/rollup.config.js
++++ b/rollup.config.js
+@@ -3,16 +3,17 @@
+ var pkg = require('./package.json');
+
+ export default {
+- entry: 'index.js',
++ input: 'index.js',
+ plugins: [buble()],
+- targets: [
++ external: ['rollup-pluginutils'],
++ output: [
+ {
+ format: 'cjs',
+- dest: pkg['main']
++ file: pkg['main']
+ },
+ {
+- format: 'es6',
+- dest: pkg['jsnext:main']
++ format: 'es',
++ file: pkg['jsnext:main']
+ }
+ ]
+ };
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f3146bb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+refresh_rollup_config.patch
diff --git a/debian/rules b/debian/rules
index 078e8fe..795f4d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,7 @@
dh $@
override_dh_auto_build:
- mkdir dist
- compile-modules convert -f commonjs -I/usr/lib/nodejs index.js > dist/index.js
- sed -i dist/index.js -e "s/exports.*/module.exports = string/g"
+ rollup -c
override_dh_auto_clean:
rm -rf dist
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-rollup-plugin-string.git
More information about the Pkg-javascript-commits
mailing list