Alec Larson
Alec Larson
IIUC, the Prettier VSC extension doesn't run if `prettier` isn't installed in the project. This setup is working well for me: https://github.com/aleclarson/chapbook/commit/3515fe8b18019138476b9d8a3154baa44f93ce86 It adds VSC workspace settings to Chapbook, enabling...
How about a special `try` function that gets compiled? In this example, if the `money` variable was never set, it will remain unset. ```js money: try(money + 1) ``` You...
Alternatively, maybe compiling the `??` operator would be better. ```js money: (money ?? 0) + 1 ``` …this becomes… ```js money = (typeof money !== 'undefined' ? money : 0)...
> I'm against the idea of redefining what `??` does because, in my opinion, it'll confuse people who already have knowledge of JS. Agreed in principle, but I don't think...
I've implemented this (along with some other changes) in my fork. See the quote at the top of the readme for more info. https://www.npmjs.com/package/@aleclarson/bucket-runner ``` npm i -g @aleclarson/bucket-runner pnpm...
For `create` events, skipping is dangerous, since the path may have been passed by the crawler already.
The good news is there's only 1-2ms between initial crawl completing and the watcher being ready (at least on my machine).
I suppose we already have the `ready` event, although it's emitted after `create` events from the initial crawl. Not sure if there's a good use case for knowing about the...
Object merging was added in v0.5.1 🎉 But producers are not yet supported
We can probably use `WITH ORDINALITY` to achieve this without JS massaging 👀