mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
fix: allow multiple digits versions (#233)
This commit is contained in:
parent
276f04265d
commit
4058525ab6
@ -105,7 +105,7 @@ export class Start extends RootCommand implements LeafCommand {
|
||||
this.beeVersion = stripCommit(this.beeVersion)
|
||||
const supportedBeeVersion = PackageJson.engines.supportedBee
|
||||
|
||||
if (!semver.satisfies(this.beeVersion, supportedBeeVersion)) {
|
||||
if (!semver.satisfies(this.beeVersion, supportedBeeVersion, { includePrerelease: true })) {
|
||||
throw new Error(
|
||||
`Unsupported Bee version!\nThis version of Bee Factory supports versions: ${supportedBeeVersion}, but you have requested start of ${this.beeVersion}`,
|
||||
)
|
||||
|
||||
@ -3,7 +3,7 @@ import * as path from 'path'
|
||||
import { promisify } from 'util'
|
||||
|
||||
const readFile = promisify(readFileCb)
|
||||
const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/
|
||||
const VERSION_REGEX = /^\d+\.\d+\.\d+(-\w+)*$/
|
||||
|
||||
export function stripCommit(version: string): string {
|
||||
if (version === 'latest') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user