From f881230cd92eba346ab2a1879d528dc047688b90 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Tue, 11 Feb 2025 14:42:31 +0100 Subject: [PATCH] Fix building on Ubuntu 24.04 --- package.json | 4 +++- replace-in-file.json | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 replace-in-file.json diff --git a/package.json b/package.json index 9953165..b70e7b1 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "scripts": { "test": "rm test/*.hdt.index.* 2> /dev/null; mocha", "lint": "eslint --fix lib/*.js test/*.js bin/*", - "validate": "npm ls" + "validate": "npm ls", + "dependencies": "replace-in-file --configFile=replace-in-file.json" }, "dependencies": { "minimist": "^1.1.0", @@ -40,6 +41,7 @@ "eslint": "^5.3.0", "mocha": "^6.2.2", "precommit-hook": "^3.0.0", + "replace-in-file": "^8.3.0", "should": "^13.1.0", "@comunica/utils-bindings-factory": "^4.0.2" }, diff --git a/replace-in-file.json b/replace-in-file.json new file mode 100644 index 0000000..3e50602 --- /dev/null +++ b/replace-in-file.json @@ -0,0 +1,5 @@ +{ + "files": "deps/libhdt/src/util/StopWatch.cpp", + "from": "uint64_t", + "to": "unsigned long long" +}