Skip to content

Tasks: Is property .name really needed? #214

@rauschma

Description

@rauschma

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"]);
    },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions