mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix forward: Filtering platform in codegen (#34897)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34897 This [commit](https://github.com/facebook/react-native/commit/7680bdeb4f96a8092393372a59c77a9d7b729cae) added the possibility to create Codegen specs that are platform specific. However, it also modifies how the codegen is invoked and we need to publish a new version of the `react-native-codegen` package on NPM before we can use that feature. ## Changelog: [General][Fixed] - Remove usage of the codegen spec filtering until we publish a new version of the codegen. Reviewed By: robhogan Differential Revision: D40176447 fbshipit-source-id: 20be630dec3dcd7efb9fd510c6cf9f2c161f906a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6552d478bd
commit
ae3dd54fae
@@ -311,6 +311,7 @@ function generateSchema(tmpDir, library, node, codegenCliPath) {
|
||||
|
||||
console.log(`\n\n[Codegen] >>>>> Processing ${library.config.name}`);
|
||||
// Generate one schema for the entire library...
|
||||
// TODO: restore the `--platform ios` parameters as soon as we publish the codegen package.
|
||||
executeNodeScript(
|
||||
node,
|
||||
`${path.join(
|
||||
@@ -319,7 +320,7 @@ function generateSchema(tmpDir, library, node, codegenCliPath) {
|
||||
'cli',
|
||||
'combine',
|
||||
'combine-js-to-schema-cli.js',
|
||||
)} --platform ios ${pathToSchema} ${pathToJavaScriptSources}`,
|
||||
)} ${pathToSchema} ${pathToJavaScriptSources}`,
|
||||
);
|
||||
console.log(`[Codegen] Generated schema: ${pathToSchema}`);
|
||||
return pathToSchema;
|
||||
|
||||
Reference in New Issue
Block a user