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:
parent
419841eac6
commit
f94b5b255d
@ -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}`)
|
||||
|
Loading…
Reference in New Issue
Block a user