nodePackages: add meta.mainProgram to packages with multiple executables

where none of the executables match the package's `name` or `pname`, and
one of the executables is the obvious `mainProgram`.
This commit is contained in:
Malo Bourgon 2022-05-17 00:09:32 -07:00
parent 8eb3f281dc
commit 73fe05a563

View file

@ -2,7 +2,13 @@
# executable that matches that packages name, so that they'll work with `nix run`.
{
# Packages that provide multiple executables where one is clearly the `mainProgram`.
"@antfu/ni" = "ni";
"@electron-forge/cli" = "electron-forge";
"@squoosh/cli" = "squoosh-cli";
"@webassemblyjs/cli" = "wasm2wast";
coffee-script = "coffee";
typescript = "tsc";
vue-cli = "vue";
# Packages that provide a single executable whose name differs from the package's `name`.
"@angular/cli" = "ng";