2019-11-21 00:06:29 +03:00
|
|
|
const { coverageReporters } = require('@fluentui/internal-tooling/jest')
|
2019-03-18 19:02:54 +03:00
|
|
|
const { rollup: lernaAliases } = require('lerna-alias')
|
2020-01-11 04:46:40 +03:00
|
|
|
const path = require('path')
|
|
|
|
const fs = require('fs')
|
2018-11-29 02:49:47 +03:00
|
|
|
|
2019-03-18 10:29:22 +03:00
|
|
|
// packages/react/src -> packages/react,
|
|
|
|
// as lernaAliases append 'src' by default
|
2020-01-11 04:46:40 +03:00
|
|
|
const packagePaths = lernaAliases({ sourceDirectory: false })
|
2019-12-09 22:53:48 +03:00
|
|
|
|
2020-01-11 04:46:40 +03:00
|
|
|
// Exclude packages which build with just, and other special packages
|
2020-01-16 02:00:08 +03:00
|
|
|
const excludedPackages = [
|
|
|
|
'@fluentui/docs',
|
|
|
|
'@fluentui/e2e',
|
|
|
|
'@fluentui/internal-tooling',
|
|
|
|
'@fluentui/perf',
|
|
|
|
]
|
2020-01-14 13:08:24 +03:00
|
|
|
const projects = Object.keys(packagePaths)
|
|
|
|
.filter(
|
|
|
|
packageName =>
|
|
|
|
!excludedPackages.includes(packageName) &&
|
|
|
|
!fs.existsSync(path.join(packagePaths[packageName], 'just.config.ts')),
|
|
|
|
)
|
|
|
|
.map(packageName => packagePaths[packageName])
|
2019-03-18 10:29:22 +03:00
|
|
|
|
|
|
|
module.exports = {
|
2019-04-18 17:51:26 +03:00
|
|
|
coverageReporters,
|
2019-03-18 10:29:22 +03:00
|
|
|
projects,
|
|
|
|
}
|