What problem does this solve?
Editing Js/Ts files via patchText might be a little bit sketchy.
Proposed Solution
Make a step to edit .js/.ts files in a similar way to patchJson step by using the Abstract Syntax Tree used during js precompilation to access properties in a similar form as json.
Alternatives Considered
You could just use patch text, but patchJs feels a bit more controlled and safer, for the same reason you would use patchJson and not patchText for json files.
Area
New step type suggestion
Contribution
Before submitting
What problem does this solve?
Editing Js/Ts files via patchText might be a little bit sketchy.
Proposed Solution
Make a step to edit .js/.ts files in a similar way to patchJson step by using the Abstract Syntax Tree used during js precompilation to access properties in a similar form as json.
Alternatives Considered
You could just use patch text, but patchJs feels a bit more controlled and safer, for the same reason you would use patchJson and not patchText for json files.
Area
New step type suggestion
Contribution
Before submitting