File: fix-for-rollup-3.patch

package info (click to toggle)
node-d3-array 3.2.4%2B~cs5.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,908 kB
  • sloc: javascript: 5,677; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 973 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: fix for rollup 3
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1022601
Forwarded: not-needed
Last-Update: 2025-09-15

--- a/internmap/rollup.config.js
+++ b/internmap/rollup.config.js
@@ -1,6 +1,7 @@
 import {readFileSync} from "fs";
 import {terser} from "rollup-plugin-terser";
-import * as meta from "./package.json";
+import fs from 'fs';
+const meta = JSON.parse(fs.readFileSync("./package.json"));
 
 // Extract copyrights from the LICENSE.
 const copyright = readFileSync("./LICENSE", "utf-8")
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -1,7 +1,8 @@
 import {nodeResolve} from "@rollup/plugin-node-resolve";
 import {readFileSync} from "fs";
 import {terser} from "rollup-plugin-terser";
-import meta from "./package.json" assert {type: "json"};
+import fs from 'fs';
+const meta = JSON.parse(fs.readFileSync("./package.json"));
 
 // Extract copyrights from the LICENSE.
 const copyright = readFileSync("./LICENSE", "utf-8")