Skip to content

Commit

Permalink
fix: Output default set to cwd of semantic-release (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
iFaxity authored Mar 18, 2023
1 parent 3ce1cb4 commit fb920ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Context } from 'semantic-release';
import { Config, Context } from 'semantic-release';
import { z } from 'zod';

const PluginOptions = z.object({
Expand Down Expand Up @@ -30,7 +30,7 @@ const PluginOptions = z.object({
export type PluginOptions = z.infer<typeof PluginOptions>;

export async function resolveOptions(
options: Partial<PluginOptions>,
options: Config & Partial<PluginOptions>,
context: Context
): Promise<PluginOptions> {
const { env, nextRelease } = context;
Expand All @@ -44,7 +44,7 @@ export async function resolveOptions(
return PluginOptions.parseAsync({
project: env.PACK_PROJECT,
configuration: env.PACK_CONFIGURATION,
output: env.PACK_OUTPUT,
output: env?.PACK_OUTPUT ?? options.cwd,
asset: env.NUGET_ASSET,
source: env.NUGET_SOURCE,
apiKey: env.NUGET_API_KEY,
Expand Down

0 comments on commit fb920ba

Please sign in to comment.