docs: function updatePackageJSONVersion() {
    let packageJSONPath = path.join(__dirname, '..', 'package.json');
  
    let pkgContents = fs.readFileSync(packageJSONPath, { encoding: 'utf-8' });
    let pkg = JSON.parse(pkgContents);
    if (!pkg._originalVersion) {
      pkg._originalVersion = pkg.version;
    }
    pkg._versionPreviouslyCalculated = true;
    pkg.version = buildInfo.version;
    fs.writeFileSync(packageJSONPath, JSON.stringify(pkg, null, 2), {
      encoding: 'utf-8',
    });
  }