From 68519bd55359245f805ab6119c8248f4b0c8e589 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 14 Mar 2026 09:52:10 +0530 Subject: [PATCH 1/2] docs: Add prerequisites for regenerating dist with ncc --- CONTRIBUTING.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a18fff92..e6c5e80a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,10 +6,14 @@ If you plan to contribute to flatpak-github-actions, here's a couple of things t - NodeJS 16.x or newer - Yarn -- `@vercel/ncc` you can install it with `yarn global add @vercel/ncc` For more details, we recommend looking the extensive guide at [Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#prerequisites) +```shell +yarn global add @vercel/ncc +yarn --cwd flatpak-builder --frozen-lockfile && yarn --cwd flat-manager --frozen-lockfile +``` + Once you have modified the `index.js` of either `flatpak-builder` or `flat-manager` action. Make sure to compile the file to the `dist` directory. You can do so with ```shell From 4faab75a04133109782c1201e1e8bc24a332b1a4 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Sat, 14 Mar 2026 09:57:31 +0530 Subject: [PATCH 2/2] docs: Add linting information --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6c5e80a..52e3b356 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,3 +20,10 @@ Once you have modified the `index.js` of either `flatpak-builder` or `flat-manag ncc build ./flatpak-builder/index.js -o ./flatpak-builder/dist/ ncc build ./flat-manager/index.js -o ./flat-manager/dist/ ``` + +## Linting + +```shell +yarn --cwd flatpak-builder install --also=dev && yarn --cwd flat-manager install --also=dev +yarn --cwd flatpak-builder run eslint . --fix && yarn --cwd flat-manager run eslint . --fix +```