Compare commits

...

3 Commits

Author SHA1 Message Date
Jason Karns
ccbdde6aa0
Merge 094c1c12f4 into bea5baf987 2023-08-14 15:28:46 +09:00
Jason Karns
094c1c12f4
Make linter happy 2021-02-07 10:28:55 -05:00
Jason Karns
20a965d27f
Spike to default the scope from package.json 2021-02-07 10:23:21 -05:00

View File

@ -25,6 +25,12 @@ function writeRegistryToFile(
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
scope = github.context.repo.owner;
}
if (!scope) {
let namePrefix = require('./package').name.match('@[^/]+');
if (namePrefix) {
scope = namePrefix[0];
}
}
if (scope && scope[0] != '@') {
scope = '@' + scope;
}