From 413c44054776f908fccdd36c207656c78a0854ca Mon Sep 17 00:00:00 2001 From: kangwei Date: Wed, 1 Apr 2020 14:56:46 +0800 Subject: [PATCH] chore: fix addowner --- scripts/addowner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/addowner.js b/scripts/addowner.js index 314005ac4..2d70e8567 100755 --- a/scripts/addowner.js +++ b/scripts/addowner.js @@ -45,7 +45,7 @@ function addOwner(packageName, owner) { } if (pkg) { - const packageJsonFile = path.join(packages_dir, item, 'package.json'); + const packageJsonFile = path.join(packages_dir, pkg, 'package.json'); if (fs.existsSync(packageJsonFile)) { const json = require(packageJsonFile); @@ -53,7 +53,7 @@ if (pkg) { pkg = json.name; } } - if (owner === '*') { + if (owner === '-') { addPackageOwners(pkg); } else { addOwner(pkg, owner);