chore(repo): standardize cross-platform development

Make line endings deterministic across macOS, Windows, and Linux while preserving the native checkout format required by Windows launchers.

Pin the tested application runtime and Node type baseline, add a shared startup preflight, and keep independently published packages on their existing compatibility ranges.

Align local scripts, pull request validation, complete package builds, dependency metadata, and contributor documentation around the same Node and pnpm contract. The root test command now covers every tested workspace package while a focused Core command remains available for local iteration.
This commit is contained in:
DrSmoothl committed 2026-07-31 13:09:02 +08:00
1 parent 8dd986a565
commit 9544aa7761
33 files changed
+217 -185

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
'use strict';
const SUPPORTED_NODE_RANGE = '^22.13.0 || >=23.4.0';
function parseNodeVersion(version) {
const match = /^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(version);
return match ? match.slice(1, 4).map(Number) : null;
}
function isSupportedNodeVersion(version) {
const actual = parseNodeVersion(version);
if (!actual) return false;
const [major, minor] = actual;
if (major === 22) return minor >= 13;
if (major === 23) return minor >= 4;
return major > 23;
}
if (require.main === module && !isSupportedNodeVersion(process.versions.node)) {
console.error(
`error: SnowLuma requires Node.js ${SUPPORTED_NODE_RANGE}; found ${process.versions.node}.`,
);
process.exitCode = 1;
}
module.exports = { SUPPORTED_NODE_RANGE, isSupportedNodeVersion };