Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Made scoped packages work
Browse files Browse the repository at this point in the history
Thanks @davej for reporting
  • Loading branch information
leo committed Mar 18, 2018
1 parent 42fee96 commit 33d4b3c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@ const getDependencies = async cwd => {

const list = stdout.split('\n').map(dependency => {
const path = relative(cwd, dependency)
return path.split('/').length > 2 ? false : path

if (path.split('/').length <= 2) {
return path
}

if (path.includes('@') && path.split('/').length <= 3) {
return path
}

return false
})

return new Set(list.filter(Boolean))
Expand Down

0 comments on commit 33d4b3c

Please sign in to comment.