Skip to content

Commit

Permalink
Bump version to 2025.02.0 (#5883)
Browse files Browse the repository at this point in the history
Bumps the version to 2025.02. 

Also makes `create-anchor` a `.cjs` rather than a `.js` since it is not
an ESM and all scripts are now considered ESM unless otherwise
indicated, post-1.95 merge.
  • Loading branch information
jmcphers authored Jan 7, 2025
1 parent 2bc1b74 commit a37f160
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion product.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"nameShort": "Positron",
"nameLong": "Positron",
"positronVersion": "2025.01.0",
"positronVersion": "2025.02.0",
"positronBuildNumber": 0,
"applicationName": "positron",
"dataFolderName": ".positron",
Expand Down
1 change: 1 addition & 0 deletions versions/2025.02.0.commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
925e4287fbfb45acd1e2a4ef8ae8979e3ee906cc
16 changes: 7 additions & 9 deletions versions/create-anchor.js → versions/create-anchor.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ const version = product.positronVersion;
const anchorPath = path.resolve(__dirname, version + '.commit');
if (fs.existsSync(anchorPath)) {
console.log(`Anchor file ${anchorPath} already exists for version ${version}.`);
return 0;
}

// Create the anchor file with the commit hash at the head of the current branch
const commit = child_process.execSync('git rev-parse HEAD').toString().trim();
fs.writeFileSync(anchorPath, commit);

// Tell the user what we did
console.log(`Created anchor file ${anchorPath} for version ${version} at commit ${commit}.`);
} else {
// Create the anchor file with the commit hash at the head of the current branch
const commit = child_process.execSync('git rev-parse HEAD').toString().trim();
fs.writeFileSync(anchorPath, commit);

// Tell the user what we did
console.log(`Created anchor file ${anchorPath} for version ${version} at commit ${commit}.`);
}

0 comments on commit a37f160

Please sign in to comment.