Skip to content

Commit

Permalink
fix: dist resolution from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Aug 26, 2022
1 parent b9ea320 commit 0b92e1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/goreleaser.ts
Expand Up @@ -82,7 +82,7 @@ const getFilename = (distribution: string): string => {
};

export async function getDistPath(yamlfile: string): Promise<string> {
const cfg = yaml.load(yamlfile);
const cfg = yaml.load(fs.readFileSync(yamlfile, 'utf8'));
return cfg.dist || 'dist';
}

Expand Down

0 comments on commit 0b92e1a

Please sign in to comment.