GT2/GT2-iOS/node_modules/react-native/local-cli/link/getProjectDependencies.js

10 lines
319 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
const path = require('path');
/**
* Returns an array of dependencies that should be linked/checked.
*/
module.exports = function getProjectDependencies() {
const pjson = require(path.join(process.cwd(), './package.json'));
return Object.keys(pjson.dependencies || {}).filter(name => name !== 'react-native');
};