@tsdown/exe 0.21.0-beta.4 → 0.21.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -39,7 +39,6 @@ function fsRemove(path) {
39
39
 
40
40
  //#endregion
41
41
  //#region src/platform.ts
42
- const SEA_VERSION_RANGE = ">=25.7.0";
43
42
  function getArchiveExtension(platform) {
44
43
  if (platform === "win") return "zip";
45
44
  if (platform === "linux") return "tar.xz";
@@ -58,7 +57,7 @@ function getBinaryPathInArchive(target) {
58
57
  function normalizeNodeVersion(target) {
59
58
  const version = semver.valid(target.nodeVersion);
60
59
  if (!version) throw new Error(`Invalid Node.js version: ${target.nodeVersion}. Please provide a valid version string (e.g., "25.7.0").`);
61
- if (!satisfies(version, SEA_VERSION_RANGE)) throw new Error(`Node.js ${version} does not support SEA (Single Executable Applications). Required: ${SEA_VERSION_RANGE}`);
60
+ if (!satisfies(version, ">=25.7.0")) throw new Error(`Node.js ${version} does not support SEA (Single Executable Applications). Required minimum version is 25.7.0. Please update the nodeVersion in your target configuration.`);
62
61
  return version;
63
62
  }
64
63
  function getTargetSuffix(target) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsdown/exe",
3
3
  "type": "module",
4
- "version": "0.21.0-beta.4",
4
+ "version": "0.21.0-beta.5",
5
5
  "description": "Cross-platform executable building for tsdown",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",