From f94b5b255da00049ac8186562ab52cfe0b2967dc Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Fri, 21 Dec 2018 15:17:00 -0800 Subject: [PATCH] don't exclude docs from getPackages() --- script/get-packages | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/get-packages b/script/get-packages index 06f4e2cf..626521f3 100755 --- a/script/get-packages +++ b/script/get-packages @@ -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}`)