1
1
mirror of https://github.com/primer/css.git synced 2024-11-24 05:06:04 +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 => { .then(packagePaths => {
return packagePaths.filter(pkg => { return packagePaths.filter(pkg => {
try { try {
const json = require(join('..', pkg, 'package.json')) require.resolve(join('..', pkg, 'package.json'))
return !json['private']
} catch (error) { } catch (error) {
if (debug) { if (debug) {
console.warn(`No package.json in ${pkg}: ${error}`) console.warn(`No package.json in ${pkg}: ${error}`)