Changed self-hosted to run on ESM

This commit is contained in:
Alexander Cerutti
2025-01-11 15:36:43 +01:00
parent 028831ea9a
commit 4044125e6a
12 changed files with 343 additions and 42 deletions

View File

@@ -3,11 +3,11 @@
* by adding files later and not adding pass.json
*/
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "node:path";
import { promises as fs } from "node:fs";
import { PKPass } from "passkit-generator";
import { app } from "./webserver.js";
import { getCertificates } from "./shared.js";
function getRandomColorPart() {
return Math.floor(Math.random() * 255);