Skip to content

Build your personal knowledge base with Trilium Notes

chore(scripts): remove now redundant standalone script

Elian Doranea667299af74
diff --git a/scripts/synchronize-versions-for-standalone.ts b/scripts/synchronize-versions-for-standalone.ts
deleted file mode 100644
index 05840ea99c..0000000000
--- a/scripts/synchronize-versions-for-standalone.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { readFileSync, writeFileSync } from "fs";
-
-function synchronize(targetPackageJsonPath: string, sourcePackageJsonPath: string) {
- const targetPackageJson = JSON.parse(readFileSync(targetPackageJsonPath, "utf-8"));
- const sourcePackageJson = JSON.parse(readFileSync(sourcePackageJsonPath, "utf-8"));
-
- for (const prefix of ["dependencies", "devDependencies"]) {
- for (const [packageName, version] of Object.entries(sourcePackageJson[prefix] || {})) {
- if (targetPackageJson[prefix] && targetPackageJson[prefix][packageName]) {
- targetPackageJson[prefix][packageName] = version;
- }
- }
- }
-
- writeFileSync(targetPackageJsonPath, JSON.stringify(targetPackageJson, null, 2));
-}
-
-synchronize("packages/trilium-core/package.json", "apps/server/package.json");
-synchronize("apps/client-standalone/package.json", "apps/client/package.json");