mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
chore: fix addowner
This commit is contained in:
parent
33206a3348
commit
413c440547
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user