Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: cleanup

Marc Seitz66f91998dae9
diff --git a/package.json b/package.json
index 289b448b..18b34a26 100644
--- a/package.json
+++ b/package.json
@@ -7,13 +7,12 @@
},
"scripts": {
"dev": "next dev",
- "build": "npm run copy:mupdf && next build",
+ "build": "next build",
"start": "next start",
"lint": "next lint",
"postinstall": "prisma generate",
"vercel-build": "prisma migrate deploy && next build",
- "email": "email dev --dir ./components/emails --port 3001",
- "copy:mupdf": "node ./scripts/copy-mupdf.cjs"
+ "email": "email dev --dir ./components/emails --port 3001"
},
"dependencies": {
"@chronark/zod-bird": "^0.2.2",
diff --git a/scripts/copy-mupdf.cjs b/scripts/copy-mupdf.cjs
deleted file mode 100644
index 501023e3..00000000
--- a/scripts/copy-mupdf.cjs
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env node
-
-const path = require("path");
-const fs = require("fs");
-
-// Resolve main entry of mupdf first
-const mupdfMainPath = path.dirname(require.resolve("mupdf"));
-// Construct the path to package.json from there
-const mupdfPackageJsonPath = path.join(mupdfMainPath, "package.json");
-
-// You probably don't directly need the package.json for the operations that follow,
-// so I'm leaving the rest of the script unchanged:
-
-const wasmPath = path.join(mupdfMainPath, "mupdf-wasm.wasm");
-const jsPath = path.join(mupdfMainPath, "mupdf-wasm.js");
-
-// Copy files to public directory
-fs.copyFileSync(wasmPath, "./public/mupdf-wasm.wasm");
-fs.copyFileSync(jsPath, "./public/mupdf-wasm.js");