diff --git a/scripts/getVersion.js b/scripts/getVersion.js index 8e7aff102..ebea68cc7 100644 --- a/scripts/getVersion.js +++ b/scripts/getVersion.js @@ -1,7 +1,7 @@ -const fs = require('fs'); -const path = require('path'); +import * as fs from 'node:fs'; +import path from 'node:path'; const packageJson = JSON.parse( - fs.readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8') + fs.readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8'), ); console.log(packageJson.version);