Skip to content

Commit

Permalink
fix: Use output dir for Rollup.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 24, 2020
1 parent 89bc9d3 commit c936353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BundleArtifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export default class BundleArtifact extends Artifact<BundleBuild> {
return `./${format}/${this.outputName}.${this.getExtension(format)}`;
}

getOutputPath(format: Format): Path {
return this.package.path.append(this.getOutputFile(format));
getOutputDir(format: Format): Path {
return this.package.path.append(format);
}

toString() {
Expand Down
2 changes: 1 addition & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function getRollupConfig(artifact: BundleArtifact, features: FeatureFlags
const ext = artifact.getExtension(format);

const output: OutputOptions = {
file: artifact.getOutputPath(format).path(),
dir: artifact.getOutputDir(format).path(),
format: getRollupModuleFormat(format),
originalFormat: format,
// Map our externals to local paths with trailing extension
Expand Down

0 comments on commit c936353

Please sign in to comment.