Skip to content

Commit

Permalink
chore: don't overwrite version strings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Aug 20, 2024
1 parent 692f8e3 commit 4ec0d1b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ async function run() {
serverPkgJson = JSON.parse(serverPkgJson);
clientPkgJson = JSON.parse(clientPkgJson);

let oldServerVersion =
const oldServerVersion =
clientPkgJson.dependencies["some-sass-language-server"];
let newServerVersion = serverPkgJson.version;
const newServerVersion = serverPkgJson.version;

newServerVersion = semver.parse(newServerVersion);
oldServerVersion = semver.parse(oldServerVersion);

let diff = semver.diff(
const diff = semver.diff(
semver.parse(oldServerVersion),
semver.parse(newServerVersion),
);
Expand Down

0 comments on commit 4ec0d1b

Please sign in to comment.