<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apheleia.git/test/formatters/installers/prettier-svelte.bash, branch align-null-check</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/apheleia.git/'/>
<entry>
<title>Add support for formatters locally installed via yarn 2+ pnp mode (#200)</title>
<updated>2023-11-05T20:08:58+00:00</updated>
<author>
<name>Ed Slocomb</name>
<email>edslocomb@gmail.com</email>
</author>
<published>2023-11-05T20:08:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/apheleia.git/commit/?id=54a192c3454e82be9d5ad910d80796b27d58035f'/>
<id>54a192c3454e82be9d5ad910d80796b27d58035f</id>
<content type='text'>
This adds support for formatters installed locally in project
directories via yarn 2's "zero install" [pnp
mode](https://yarnpkg.com/features/pnp).

It's quite similar to the support for formatters installed locally in a
project's `node_modules` via npm, and leverages the `npx` symbol, so
existing formatter definitions should work without modification.

This checks for a `.pnp.cjs` file (expected in the project root for yarn
pnp projects), then looks for a yarn executable, and checks the version
of yarn to make sure it supports pnp. If that works, we just push
`"yarn"` onto the front of `command`.

I've only tested this with a locally installed `prettier.js`. It's very
much a works-for-me draft, I'm putting in a PR to make sure this is a
workable approach before going any further with it.

---------

Co-authored-by: Radon Rosborough &lt;radon@intuitiveexplanations.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds support for formatters installed locally in project
directories via yarn 2's "zero install" [pnp
mode](https://yarnpkg.com/features/pnp).

It's quite similar to the support for formatters installed locally in a
project's `node_modules` via npm, and leverages the `npx` symbol, so
existing formatter definitions should work without modification.

This checks for a `.pnp.cjs` file (expected in the project root for yarn
pnp projects), then looks for a yarn executable, and checks the version
of yarn to make sure it supports pnp. If that works, we just push
`"yarn"` onto the front of `command`.

I've only tested this with a locally installed `prettier.js`. It's very
much a works-for-me draft, I'm putting in a PR to make sure this is a
workable approach before going any further with it.

---------

Co-authored-by: Radon Rosborough &lt;radon@intuitiveexplanations.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Pretter svelte-mode (#178)</title>
<updated>2023-03-23T21:00:51+00:00</updated>
<author>
<name>Jay Barra</name>
<email>jay.f.barra@gmail.com</email>
</author>
<published>2023-03-23T21:00:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/apheleia.git/commit/?id=43ffed789064db2c59fe3fe8e1c1c2e142b3e483'/>
<id>43ffed789064db2c59fe3fe8e1c1c2e142b3e483</id>
<content type='text'>
Adds support for `svelte-mode` using prettier.

Co-authored-by: Radon Rosborough &lt;radon@intuitiveexplanations.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds support for `svelte-mode` using prettier.

Co-authored-by: Radon Rosborough &lt;radon@intuitiveexplanations.com&gt;</pre>
</div>
</content>
</entry>
</feed>
