message: Stop adding .js in indicies generation
  It enables ESM support for Node.js
diff: @@ -19,7 +19,7 @@ const outdatedLocales = require('../../outdatedLocales.json')
  const generatedAutomaticallyMessage =
  "// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it."
  -listFns().then(fns => {
  +listFns().then((fns) => {
  const fpFns = listFPFns()
  const locales = listLocales().filter(
  ({ code }) => !outdatedLocales.includes(code)
  @@ -40,15 +40,15 @@ function writeFile(relativePath, content) {
  function generateIndex(files, isFP, includeConstants) {
  const fileLines = files
  .map(
  - fn =>
  + (fn) =>
  `export { default as ${fn.name} } from '${fn.path.replace(
  /\.js$/,
  ''
  - )}/index.js'`
  + )}/index'`
  )
  .concat(
  includeConstants
  - ? `export * from '${isFP ? '..' : '.'}/constants/index.js'`
  + ? `export * from '${isFP ? '..' : '.'}/constants/index'`
  : []
  )
  