fix issues with legacy packages (#2841)

* fix issues with legacy packages

* include non-prerelease versions within compat range

* lock sdk to corresponding os prerelease

* bump sdk version

* fixes from PR review
This commit is contained in:
Aiden McClelland
2025-03-03 10:30:36 -07:00
committed by GitHub
parent 737beb11f6
commit 63bc71da13
15 changed files with 868 additions and 464 deletions

View File

@@ -73,7 +73,7 @@ import * as actions from "../../base/lib/actions"
import { setupInit } from "./inits/setupInit"
import * as fs from "node:fs/promises"
export const SDKVersion = testTypeVersion("0.3.6")
export const OSVersion = testTypeVersion("0.3.6-alpha.15")
// prettier-ignore
type AnyNeverCond<T extends any[], Then, Else> =

View File

@@ -4,7 +4,7 @@ import {
SDKManifest,
SDKImageInputSpec,
} from "../../../base/lib/types/ManifestTypes"
import { SDKVersion } from "../StartSdk"
import { OSVersion } from "../StartSdk"
import { VersionGraph } from "../version/VersionGraph"
import { execSync } from "child_process"
@@ -58,7 +58,7 @@ export function buildManifest<
)
return {
...manifest,
osVersion: SDKVersion,
osVersion: manifest.osVersion ?? OSVersion,
version: versions.current.options.version,
releaseNotes: versions.current.options.releaseNotes,
satisfies: versions.current.options.satisfies || [],

View File

@@ -1,12 +1,12 @@
{
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.13",
"version": "0.3.6-beta.14",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.13",
"version": "0.3.6-beta.14",
"license": "MIT",
"dependencies": {
"@iarna/toml": "^2.2.5",

View File

@@ -1,6 +1,6 @@
{
"name": "@start9labs/start-sdk",
"version": "0.3.6-beta.13",
"version": "0.3.6-beta.14",
"description": "Software development kit to facilitate packaging services for StartOS",
"main": "./package/lib/index.js",
"types": "./package/lib/index.d.ts",