Skip to content

An open-source, self-hosted system for apps built with web technologies.

Declare the System Node runtime requirement

zohayrslileh22be104edef1
diff --git a/package.json b/package.json
index 9872560..5778834 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,9 @@
"description": "The PhreshOS server, desktop, and authoritative system runtime.",
"type": "module",
"private": true,
+ "engines": {
+ "node": ">=24.15.0"
+ },
"author": "Zohayr SLILEH",
"license": "MIT",
"repository": {
diff --git a/scripts/verify-distribution.mjs b/scripts/verify-distribution.mjs
index 9353cb5..a369e85 100644
--- a/scripts/verify-distribution.mjs
+++ b/scripts/verify-distribution.mjs
@@ -56,6 +56,7 @@ try {
const installedManifest = JSON.parse(readFileSync(join(installation, "package.json"), "utf8"))
assert.deepEqual(installedManifest.scripts, { start: "node server/main.js" })
+ assert.deepEqual(installedManifest.engines, { node: ">=24.15.0" })
assert.deepEqual(
installedManifest.dependencies,
Object.fromEntries(["cfonts", "sharp"].map(name => [name, manifest.dependencies[name]]))
diff --git a/source/build.ts b/source/build.ts
index 67c3f36..7b7af25 100644
--- a/source/build.ts
+++ b/source/build.ts
@@ -18,6 +18,7 @@ await build({ configFile: "vite.client.ts" })
await writeFile("dist/package.json", JSON.stringify({
type: "module",
+ engines: packageConfig.engines,
scripts: {
start: "node server/main.js"
},