How to access root folder using module-resolver

I would like to access my package json on my react

on my babel, I have this config

  [
    'module-resolver',
    {
      root: ['.'],
      extensions: ['.js', '.json', '.png'],
      alias: {
        '@@': './',
        '@': './src'
      },
      
    },
  ]

But I’m having an error while importing the package

import { version } from '@@/package.json'

Cannot find module ‘@@/package.json’

Thanks!