Skip to content

Fix bug with stagingDir fallback not working#1606

Merged
TwitchBronBron merged 2 commits intov1from
fix-stagingDir-fallback
Jan 13, 2026
Merged

Fix bug with stagingDir fallback not working#1606
TwitchBronBron merged 2 commits intov1from
fix-stagingDir-fallback

Conversation

@TwitchBronBron
Copy link
Copy Markdown
Member

When we deprecated stagingDir, the backwards-compatibility logic was broken that was supposed to use stagingDir or stagingFolderPath as outDir when outDir was not specified.

This fixes that.

Comment thread src/util.ts
public normalizeAndResolveConfig(config: BsConfig | undefined): FinalizedBsConfig {
let result = this.normalizeConfig({});
let result = this.normalizeConfig({
...config
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the fix. We need to pass along a copy of the incoming config so we have access to deprecated props when loading defaults

@TwitchBronBron TwitchBronBron enabled auto-merge (squash) January 13, 2026 18:40
@TwitchBronBron TwitchBronBron merged commit dbcb4f2 into v1 Jan 13, 2026
8 checks passed
@TwitchBronBron TwitchBronBron deleted the fix-stagingDir-fallback branch January 13, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant