Skip to content

Commit

Permalink
fix(postinstall): correctly parse the prerelease object (#174)
Browse files Browse the repository at this point in the history
Fixes: #165
  • Loading branch information
ayushmanchhabra authored Jun 3, 2024
1 parent 3b4202e commit 9802fb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
strategy:
matrix:
os: [macos-13, ubuntu-22.04, windows-2022]
os: [macos-14, ubuntu-22.04, windows-2022]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Changed

- Correctly parse the prerelease object.

## [0.88.0]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function postinstall() {
*/
const prerelease = String(parsedVersion?.prerelease[0]);
/* Check build flavor and slice that off the `version`. */
if (prerelease.endsWith('-sdk')) {
if (prerelease.endsWith('sdk')) {
flavor = 'sdk';
}

Expand Down

0 comments on commit 9802fb8

Please sign in to comment.