Move codegen into packages/react-native-codegen · facebook/react-native@5ed749e (original) (raw)

File tree

46 files changed

lines changed

46 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
10 10
11 11 'use strict';
12 12
13 -import type {SchemaType} from '../../../codegen/src/CodegenSchema.js';
13 +import type {SchemaType} from '../../../packages/react-native-codegen/src/CodegenSchema.js';
14 14
15 15 const SwitchSchema: SchemaType = {
16 16 modules: {
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ load("@fbsource//tools/build_defs:default_platform_defs.bzl", "ANDROID", "APPLE"
2 2 load("@fbsource//tools/build_defs:fb_native_wrapper.bzl", "fb_native")
3 3 load("@fbsource//tools/build_defs:fb_xplat_cxx_binary.bzl", "fb_xplat_cxx_binary")
4 4 load("@fbsource//tools/build_defs/oss:rn_defs.bzl", "rn_xplat_cxx_library")
5 -load("@fbsource//xplat/js/react-native-github/codegen:DEFS.bzl", "rn_codegen_test")
5 +load("@fbsource//xplat/js/react-native-github/packages/react-native-codegen:DEFS.bzl", "rn_codegen_test")
6 6
7 7 fb_native.sh_binary(
8 8 name = "copy_fixture_schema",
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ def rn_codegen_test(
17 17 fb_native.genrule(
18 18 name = copy_schema_name,
19 19 srcs = [],
20 -cmd = "$(exe xplat//js/react-native-github/codegen:copy_fixture_schema) {} $OUT".format(fixture_name),
20 +cmd = "$(exe xplat//js/react-native-github/packages/react-native-codegen:copy_fixture_schema) {} $OUT".format(fixture_name),
21 21 out = "schema-{}.json".format(fixture_name),
22 22 )
23 23
@@ -38,7 +38,7 @@ def rn_codegen(
38 38 fb_native.genrule(
39 39 name = generate_fixtures_rule_name,
40 40 srcs = [],
41 -cmd = "$(exe xplat//js/react-native-github/codegen:rn_codegen) (location)(location {}) {} (location)OUT".format(schema_target, name),
41 +cmd = "$(exe xplat//js/react-native-github/packages/react-native-codegen:rn_codegen) (location)(location {}) {} (location)OUT".format(schema_target, name),
42 42 out = "codegenfiles-{}".format(name),
43 43 )
44 44

File renamed without changes.

Original file line number Diff line number Diff line change
@@ -6,6 +6,6 @@ set -u
6 6 THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" |
7 7
8 8 # shellcheck source=xplat/js/env-utils/setup_env_vars.sh
9 -source "$THIS_DIR/../../../env-utils/setup_env_vars.sh"
9 +source "$THIS_DIR/../../../../env-utils/setup_env_vars.sh"
10 10
11 11 exec "$FLOW_NODE_BINARY" "$THIS_DIR/combine-js-to-schema.js" "$@"

File renamed without changes.

Original file line number Diff line number Diff line change
@@ -6,6 +6,6 @@ set -u
6 6 THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" |
7 7
8 8 # shellcheck source=xplat/js/env-utils/setup_env_vars.sh
9 -source "$THIS_DIR/../../../env-utils/setup_env_vars.sh"
9 +source "$THIS_DIR/../../../../env-utils/setup_env_vars.sh"
10 10
11 11 exec "$FLOW_NODE_BINARY" "$THIS_DIR/copy-fixture.js" "$@"

File renamed without changes.

File renamed without changes.