-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid overwriting apheleia-formatters for npx commands (#152)
When the formatter is an npx command, setcar is used to expand the binary file path to node_modules/.bin. But setcar overwrites the underlying list, so the expanded path is set into apheleia-formatters. (The list was processed by remq before setcar, but remq seems to return the cdr if only the first element is removed.) This is undesirable because when working on multiple NPM packages, each package may have a formatter of different version.
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters