1
1
mirror of https://github.com/primer/css.git synced 2024-11-27 17:52:45 +03:00

don't exclude docs from getPackages()

This commit is contained in:
Shawn Allen 2018-12-21 15:17:00 -08:00
parent 419841eac6
commit f94b5b255d

View File

@ -10,8 +10,7 @@ const getPackages = (debug = false) => {
.then(packagePaths => {
return packagePaths.filter(pkg => {
try {
const json = require(join('..', pkg, 'package.json'))
return !json['private']
require.resolve(join('..', pkg, 'package.json'))
} catch (error) {
if (debug) {
console.warn(`No package.json in ${pkg}: ${error}`)