Skip to content

Commit

Permalink
fix for dist dir for __tests__ dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jul 24, 2019
1 parent d11906b commit 66fed2f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions monorepo.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@

module.exports = {
packages: [
{ path: 'packages/*', distDir: 'dist' },
{ path: 'packages-premium/*', distDir: 'dist' },
{ path: 'packages/*', distDir: ourPkgDist },
{ path: 'packages-premium/*', distDir: ourPkgDist },
{ path: 'packages-contrib/react', distDir: 'dist' },
{ path: 'packages-contrib/vue', distDir: 'dist' },
{ path: 'packages-contrib/angular', distDir: 'dist/fullcalendar' },
'example-projects/*'
]
}

function ourPkgDist(relPath) {
return relPath.match(/__tests__/) ? '' : 'dist'
}

0 comments on commit 66fed2f

Please sign in to comment.