From ac3e2dafe8459667672c6ae57d0ba574ea156f05 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 2 Dec 2021 20:02:28 +0100 Subject: Import node-d3-force_1.2.1-3.debian.tar.xz [dgit import tarball node-d3-force 1.2.1-3 node-d3-force_1.2.1-3.debian.tar.xz] --- patches/remove-unsupported-syntax.patch | 32 ++++++++++++++++++++++++++++++++ patches/reproducible_build.diff | 15 +++++++++++++++ patches/series | 2 ++ 3 files changed, 49 insertions(+) create mode 100644 patches/remove-unsupported-syntax.patch create mode 100644 patches/reproducible_build.diff create mode 100644 patches/series (limited to 'patches') diff --git a/patches/remove-unsupported-syntax.patch b/patches/remove-unsupported-syntax.patch new file mode 100644 index 0000000..bf1b359 --- /dev/null +++ b/patches/remove-unsupported-syntax.patch @@ -0,0 +1,32 @@ +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/patches/reproducible_build.diff b/patches/reproducible_build.diff new file mode 100644 index 0000000..289e06d --- /dev/null +++ b/patches/reproducible_build.diff @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2019-06-20 + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -9,7 +9,7 @@ + format: "umd", + indent: false, + extend: true, +- banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, ++ banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} ${meta.author.name}`, + globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) + }, + plugins: [] diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..ba4f208 --- /dev/null +++ b/patches/series @@ -0,0 +1,2 @@ +remove-unsupported-syntax.patch +reproducible_build.diff -- cgit v1.2.3