I’m curious: Does the object passed to task() really need a property .name? If Hereby does a namespace import then it already has all the names(?) It could even add the property automatically to whatever data structure it uses internally.
import { execa } from "execa";
import { task } from "hereby";
export const build = task({
name: "build",
run: async () => {
await execa("tsc", ["-b", "./src"]);
},
});
I’m curious: Does the object passed to
task()really need a property.name? If Hereby does a namespace import then it already has all the names(?) It could even add the property automatically to whatever data structure it uses internally.