diff options
| author | Xandor Schiefer <me@xandor.co.za> | 2024-09-03 02:44:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 17:44:02 -0700 |
| commit | f1492683c10cbe4fd5c03e6a75fb0256bd739c2a (patch) | |
| tree | a36012c9f8ac8404aee635a86075a7e44f2f180e /test/shared/run-func.bash | |
| parent | 73617ab050b646f099ba7ccb74cbecf94329a67c (diff) | |
Fix `apheleia-npx` in Yarn PnP projects (#301)
* `apheleia-npx` would use an incorrect path for the Yarn PnP ESM
loader.
* `apheleia-npx` did not correctly guard against word splitting.
* `apheleia-npx` was sometimes not able to find formatters in a Yarn PnP
project if there was also a node_modules folder at the root of the
project. Unfortunately, many tools (including
[Prettier](https://github.com/prettier/prettier/issues/13032)) will
create a cache folder in `node_modules` even in Yarn PnP projects. The
presence of any `node_modules` folders are irrelevant when a `.pnp.cjs`
file is present.
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'test/shared/run-func.bash')
| -rwxr-xr-x | test/shared/run-func.bash | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/shared/run-func.bash b/test/shared/run-func.bash index f5d6f96..8742c95 100755 --- a/test/shared/run-func.bash +++ b/test/shared/run-func.bash @@ -10,5 +10,8 @@ shift cd "$(dirname "$0")/../.." -exec emacs --batch -L . "$@" \ - --eval "(setq debug-on-error t)" -f "${func}" +exec emacs --batch -L . "$@" \ + --eval "(setq debug-on-error t)" \ + --eval "(setq backtrace-line-length 0)" \ + -f "${func}" \ + 2>&1 | sed -uE 's/^(.{320}).+$/\1...[truncated]/' |
