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