chore: fix mapping in server babel config

This commit is contained in:
Satyajit Sahoo
2021-05-31 20:42:07 +02:00
parent 56f7df5384
commit 1287a784e6
2 changed files with 1241 additions and 2000 deletions

View File

@@ -7,14 +7,9 @@ const alias = Object.fromEntries(
fs
.readdirSync(packages)
.filter((name) => !name.startsWith('.'))
.map((name) => [
`@react-navigation/${name}`,
path.resolve(
packages,
name,
require(`../../packages/${name}/package.json`).source
),
])
.map((name) => [name, require(`../../packages/${name}/package.json`)])
.filter(([, pak]) => pak.source != null)
.map(([name, pak]) => [pak.name, path.resolve(packages, name, pak.source)])
);
module.exports = {

3230
yarn.lock

File diff suppressed because it is too large Load Diff