summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-12-02 20:02:28 +0100
committerJonas Smedegaard <dr@jones.dk>2021-12-02 20:02:28 +0100
commitac3e2dafe8459667672c6ae57d0ba574ea156f05 (patch)
tree57e3fbea50e171a8515d3878440faa77406beef4 /patches
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]
Diffstat (limited to 'patches')
-rw-r--r--patches/remove-unsupported-syntax.patch32
-rw-r--r--patches/reproducible_build.diff15
-rw-r--r--patches/series2
3 files changed, 49 insertions, 0 deletions
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 <lamby@debian.org>
+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