Skip to content

Commit

Permalink
feat: get react-native package name from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Sep 23, 2024
1 parent a05f9c6 commit 7d5c5a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const CORE_LIBRARIES_WITH_OUTPUT_FOLDER = {
),
},
};
const REACT_NATIVE = 'react-native';

Check warning on line 62 in packages/react-native/scripts/codegen/generate-artifacts-executor.js

View workflow job for this annotation

GitHub Actions / test_js (20)

Missing semicolon

Check warning on line 62 in packages/react-native/scripts/codegen/generate-artifacts-executor.js

View workflow job for this annotation

GitHub Actions / test_js (18)

Missing semicolon
const packageJsonPath = path.join(REACT_NATIVE_PACKAGE_ROOT_FOLDER, 'package.json')
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
const REACT_NATIVE = packageJson.name;

const MODULES_PROTOCOLS_H_TEMPLATE_PATH = path.join(
REACT_NATIVE_PACKAGE_ROOT_FOLDER,
Expand Down

0 comments on commit 7d5c5a2

Please # to comment.