自动更新主题和插件至 .gjs 文件格式

最简单的办法可能是使用 d/shell。这会为你提供一个在容器内运行的终端,然后你可以按照 OP 中的说明进行操作。

所以大致是这样的:

d/shell

进入容器后:

cd plugins/discourse-weekly-newsletter
pnpm dlx @discourse/update-skeleton@latest
pnpm eslint --fix .
pnpm prettier --write "**/*.{gjs,js,hbs,scss}"
pnpm dlx https://github.com/discourse/discourse-gjs-codemod