You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> bun run stylelint **/*.csserror: Cannot find package "vm" from "/home/kachick/repos/kachick.github.io/node_modules/v8-compile-cache/v8-compile-cache.js"error: "stylelint" exited with code 1 (SIGHUP)error: script "lint" exited with code 1 (SIGHUP)
> deno cache --node-modules-dir npm:stylelint npm:stylelint-config-standard npm:stylelint-config-prettier
# stdbuf does not correctly handle the original color... :<
# unbuffer does not end in GitHub Actions... :<
# So add `unbuffer ` prefix into deno when I want local developping
> stylelintoutput="$(mktemp)"&& \ deno run --node-modules-dir --allow-env --allow-read npm:stylelint/stylelint '**/*.css' | tee "$stylelintoutput" && \ ! [ -s "$stylelintoutput" ]
#194 みたいな事をかいてはいたけれど、なんかどうも bun で stylelint 叩くときに node にもパスが通ってないと動かない感があった。
Nix に切り替えるときにちょっと触っていくと、nodejs の無い環境では次のようなエラーが出る
この v8-compile-cache という名前が bun で出てくるというのが如何にも怪しい。
どうやら stylelint/stylelint#4272 で速度向上を狙って eslint の PR eslint/eslint#11921 を真似して突っ込んだということなんだけど、 eslint 側でも引っかかるようなら流石にもっと話題になってるやろと思ったら eslint/eslint#16235 の中でなんか他の作業と混ぜつつ捨てられてた。
ほーん・・・これは外からなんか出来るんかなー
当時より deno の npm 対応が進んだということで、最終的に deno にしてしまった。速度面でのメリットは享受できなくなった気がするけど、ツールセット面での悩みが減るのはやはり嬉しい
kachick/kachick.github.io#61
コマンドラインの組み立て方がピンと来ず四苦八苦したけれど、先に cache してやれば良さそう。
しかし、これだと stylelint でエラー扱いになっても、 deno としてはコマンドを正常に完了できたからなのか exit 0 になるというよくわからないことに・・・
渋々色を残しつつ tee を挟んだけれど、シンプルとは・・・?みたいな気持ちにちょっとなってきたのでどっかでまだなんか触って見るかも
refs
The text was updated successfully, but these errors were encountered: