diff --git a/debian/control b/debian/control index c76bff0..33410ec 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ , node-tape , pkg-js-tools (>= 0.9.20~) , rollup - , uglifyjs.terser + , node-rollup-plugin-terser Standards-Version: 4.5.1 Vcs-Browser: https://salsa.debian.org/js-team/node-d3-shape Vcs-Git: https://salsa.debian.org/js-team/node-d3-shape.git diff --git a/debian/patches/remove-unsupported-syntax.patch b/debian/patches/remove-unsupported-syntax.patch deleted file mode 100644 index d699859..0000000 --- a/debian/patches/remove-unsupported-syntax.patch +++ /dev/null @@ -1,32 +0,0 @@ -Description: Remove unsupported syntax - This syntax is not supported in packaged rollup/node yet. - Minified file is generated by uglifyjs.terser command line. ---- a/rollup.config.js -+++ b/rollup.config.js -@@ -1,4 +1,3 @@ --import {terser} from "rollup-plugin-terser"; - import * as meta from "./package.json"; - - const config = { -@@ -17,20 +16,5 @@ - }; - - export default [ -- config, -- { -- ...config, -- output: { -- ...config.output, -- file: `dist/${meta.name}.min.js` -- }, -- plugins: [ -- ...config.plugins, -- terser({ -- output: { -- preamble: config.output.banner -- } -- }) -- ] -- } -+ config - ]; diff --git a/debian/patches/reproducible_build.diff b/debian/patches/reproducible_build.diff index 289e06d..2f690be 100644 --- a/debian/patches/reproducible_build.diff +++ b/debian/patches/reproducible_build.diff @@ -4,7 +4,7 @@ --- a/rollup.config.js +++ b/rollup.config.js -@@ -9,7 +9,7 @@ +@@ -10,7 +10,7 @@ format: "umd", indent: false, extend: true, diff --git a/debian/patches/series b/debian/patches/series index ba4f208..774a9a2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1 @@ -remove-unsupported-syntax.patch reproducible_build.diff diff --git a/debian/rules b/debian/rules index 7957670..65b73e2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,12 +1,8 @@ #!/usr/bin/make -f # -*- makefile -*- - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 %: dh $@ --with nodejs override_dh_auto_build: rollup -c - uglifyjs.terser dist/d3-shape.js -o dist/d3-shape.min.js