diff --git a/native/codegen/src/CodeGen.js b/native/codegen/src/CodeGen.js --- a/native/codegen/src/CodeGen.js +++ b/native/codegen/src/CodeGen.js @@ -3,16 +3,16 @@ * @format */ // import generators -import { type SchemaType } from 'comm-react-native-codegen/lib/CodegenSchema'; -import generatorCpp from 'comm-react-native-codegen/lib/generators/modules/GenerateModuleCpp.js'; -import generatorH from 'comm-react-native-codegen/lib/generators/modules/GenerateModuleH.js'; -import generatorJavaSpec from 'comm-react-native-codegen/lib/generators/modules/GenerateModuleJavaSpec.js'; -import generatorJniCpp from 'comm-react-native-codegen/lib/generators/modules/GenerateModuleJniCpp.js'; -import generatorJniH from 'comm-react-native-codegen/lib/generators/modules/GenerateModuleJniH.js'; -// import parser -import parser from 'comm-react-native-codegen/lib/parsers/flow/index.js'; import fs from 'fs'; import path from 'path'; +import { type SchemaType } from 'react-native-codegen/lib/CodegenSchema'; +import generatorCpp from 'react-native-codegen/lib/generators/modules/GenerateModuleCpp.js'; +import generatorH from 'react-native-codegen/lib/generators/modules/GenerateModuleH.js'; +import generatorJavaSpec from 'react-native-codegen/lib/generators/modules/GenerateModuleJavaSpec.js'; +import generatorJniCpp from 'react-native-codegen/lib/generators/modules/GenerateModuleJniCpp.js'; +import generatorJniH from 'react-native-codegen/lib/generators/modules/GenerateModuleJniH.js'; +// import parser +import parser from 'react-native-codegen/lib/parsers/flow/index.js'; export type GeneratorKindType = 'cpp' | 'h' | 'java' | 'jni_cpp' | 'jni_h'; diff --git a/native/package.json b/native/package.json --- a/native/package.json +++ b/native/package.json @@ -30,7 +30,6 @@ "babel-jest": "^26.6.3", "babel-plugin-transform-remove-console": "^6.9.4", "babel-plugin-transform-remove-strict-mode": "0.0.2", - "comm-react-native-codegen": "npm:react-native-codegen@^0.70.6", "flow-bin": "^0.182.0", "flow-mono-cli": "^1.5.0", "flow-typed": "^3.2.1", @@ -43,6 +42,7 @@ "patch-package": "^6.4.7", "postinstall-postinstall": "^2.0.0", "react-devtools": "^4.27.0", + "react-native-codegen": "^0.70.6", "react-test-renderer": "18.1.0", "remote-redux-devtools": "git+https://git@github.com/zalmoxisus/remote-redux-devtools.git", "remotedev": "git+https://git@github.com/zalmoxisus/remotedev.git" diff --git a/yarn.lock b/yarn.lock --- a/yarn.lock +++ b/yarn.lock @@ -7658,16 +7658,6 @@ dependencies: delayed-stream "~1.0.0" -"comm-react-native-codegen@npm:react-native-codegen@^0.70.6", react-native-codegen@^0.70.6: - version "0.70.6" - resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb" - integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== - dependencies: - "@babel/parser" "^7.14.0" - flow-parser "^0.121.0" - jscodeshift "^0.13.1" - nullthrows "^1.1.1" - command-exists@^1.2.4: version "1.2.9" resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" @@ -17920,6 +17910,16 @@ dependencies: prop-types "^15.6.2" +react-native-codegen@^0.70.6: + version "0.70.6" + resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.70.6.tgz#2ce17d1faad02ad4562345f8ee7cbe6397eda5cb" + integrity sha512-kdwIhH2hi+cFnG5Nb8Ji2JwmcCxnaOOo9440ov7XDzSvGfmUStnCzl+MCW8jLjqHcE4icT7N9y+xx4f50vfBTw== + dependencies: + "@babel/parser" "^7.14.0" + flow-parser "^0.121.0" + jscodeshift "^0.13.1" + nullthrows "^1.1.1" + react-native-device-info@^8.0.7: version "8.0.7" resolved "https://registry.yarnpkg.com/react-native-device-info/-/react-native-device-info-8.0.7.tgz#c04f5dd50a977da21305b99088c0b42b588d07f9"