mirror of
https://github.com/expo/react-native-community-cli.git
synced 2026-11-14 19:11:48 -10:00
* chore: setup monorepo with lerna * chore: move flow to root * fix: lint * chore: add watch command
17 lines
357 B
JavaScript
17 lines
357 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const PACKAGES_DIR = path.resolve(__dirname, '../packages');
|
|
|
|
function getPackages() {
|
|
return fs
|
|
.readdirSync(PACKAGES_DIR)
|
|
.map(file => path.resolve(PACKAGES_DIR, file))
|
|
.filter(f => fs.lstatSync(path.resolve(f)).isDirectory());
|
|
}
|
|
|
|
module.exports = {
|
|
getPackages,
|
|
PACKAGES_DIR,
|
|
};
|