From 730164d11a7bfbd0aa916e7a6ed2f725d2013313 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:46:24 +0000 Subject: [PATCH] chore(update): minor update on script (#829) --- 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}`)