From e9d87ec9e2cd21865a5ac8ab602e26a86e309498 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:45:16 +0000 Subject: [PATCH] Update updateVersion.js --- updateVersion.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updateVersion.js b/updateVersion.js index a5f02da43..abbbced4d 100644 --- a/updateVersion.js +++ b/updateVersion.js @@ -1,5 +1,5 @@ -const fs = require('fs') -const path = require('path') +import fs from 'fs' +import path from 'path' const VERSION = process.env.RELEASE_VERSION @@ -17,6 +17,6 @@ let content = fs.readFileSync(filePath, 'utf-8') // Update URLs in DOWNLOAD_LINKS content = content.replace(/\/v\d+\.\d+\.\d+\//g, `/v${VERSION}/`) -fs.writeFileSync(filePath, content); +fs.writeFileSync(filePath, content) console.log(`Updated DOWNLOAD_LINKS version to v${VERSION}`)