Skip to content

Commit

Permalink
fix: typing of registry value
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeents committed Nov 26, 2022
1 parent 3e2381c commit d3aa0a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function verifyConditions(

ctx.logger.log(`read ${ctx.cwd}/package.json`);
const packageJson = await getPackage(ctx.cwd);
const registry = packageJson?.publishConfig?.registry;
const registry = packageJson?.publishConfig?.registry as string;

if (packageJson.private === true) {
ctx.logger.log('skipping since package is private');
Expand Down Expand Up @@ -82,8 +82,6 @@ export async function prepare(config: PluginConfig, ctx: PrepareContext) {
}

export async function publish(config: PluginConfig, ctx: PrepareContext) {
config = PluginConfig.normalize(config);

if (!verified || !prepared) {
ctx.logger.log('skipping since not verified or prepared');
return;
Expand Down

0 comments on commit d3aa0a9

Please sign in to comment.