Skip to content

Commit

Permalink
[FIX] Remove semver validation from node version read from .nvmrc
Browse files Browse the repository at this point in the history
Node version can be specified as an alias (such as `iojs`, `lts/hydrogen` etc), so validating it as semver may cause errors for some users.
  • Loading branch information
khamilowicz committed Sep 13, 2023
1 parent da9829a commit a9b4ee7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/eas-cli/src/utils/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ async function getNodeVersionFromFileAsync(projectDir: string): Promise<string |
} catch {
return undefined;
}
if (!semver.valid(semver.coerce(nodeVersion))) {
throw new Error(`Invalid node version in .nvmrc: ${nodeVersion}`);
}
return nodeVersion;
}

Expand Down

0 comments on commit a9b4ee7

Please sign in to comment.