Skip to content

[Change-codegenConfig] refactor: change codegenConfig format#337

Open
Space-Belt wants to merge 1 commit intonumandev1:mainfrom
Space-Belt:refactor/codegenConfig
Open

[Change-codegenConfig] refactor: change codegenConfig format#337
Space-Belt wants to merge 1 commit intonumandev1:mainfrom
Space-Belt:refactor/codegenConfig

Conversation

@Space-Belt
Copy link

Summary

update json codegenConfig, because the React Native version changed, which required a new structure for the config.

Changelog

[CATEGORY] [TYPE] - Message

Test Plan

@petrbela
Copy link

petrbela commented Sep 3, 2025

Does it fix this warning?

[Codegen] CodegenConfig Deprecated Setup for react-native-compressor.
    The configuration file still contains the codegen in the libraries array.
    If possible, replace it with a single object.
  
[Codegen] BEFORE:
    {
      // ...
      "codegenConfig": {
        "libraries": [
          {
            "name": "libName1",
            "type": "all|components|modules",
            "jsSrcsRoot": "libName1/js"
          },
          {
            "name": "libName2",
            "type": "all|components|modules",
            "jsSrcsRoot": "libName2/src"
          }
        ]
      }
    }

    AFTER:
    {
      "codegenConfig": {
        "name": "libraries",
        "type": "all",
        "jsSrcsRoot": "."
      }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants