Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing getTargetFile type #206

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

johnnyreilly
Copy link
Contributor

@johnnyreilly johnnyreilly commented Dec 17, 2024

This PR adds the getTargetFile option which is missing from the type definition.

getTargetFile: source => source,

For now I'm patching in my own code like this:

import "replace-in-file";

declare module "replace-in-file" {
  export interface ReplaceInFileConfig {
    getTargetFile?(source: string): string;
  }
}

@adamreisnz
Copy link
Owner

Thank you!

@adamreisnz adamreisnz merged commit 5e33265 into adamreisnz:main Dec 17, 2024
@johnnyreilly johnnyreilly deleted the patch-1 branch December 17, 2024 07:10
@adamreisnz
Copy link
Owner

Released in 8.3.0

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.

2 participants