SukkaW / nolyfill

Speed up your package installation process, reduce your disk usage, and extend the lifespan of your precious SSD.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] A github action to check packages can be replaced on pr

fengkx opened this issue · comments

I want to check for new packages to replace on pr using github action.

One approch is using JavaScript action.
The main field in package.json is now a invalid path, But the packages list can be obtained by

import nolyfill from "nolyfill/dist/index.js";
// ....
const packagesCoveredByNolyfill = await nolyfill.findPackagesCoveredByNolyfill(packageManager, projectPath);

But JavaScript action need to be bundled, once nolyfill is bundled, new nolyfill version will not be updated unless the JavaScript action is updated.

Another approch is runing cli in shell. Maybe a json output mode is needed.