Skip to content
Current release v0.0.2Release notesGitHub

Deno tasks

pkgr reads the tasks section of deno.json or deno.jsonc and runs the chosen one with deno task <name>.

{
"tasks": {
"dev": "deno run --watch main.ts",
"test": "deno test -A"
}
}

Each row shows the task name and its command.

Deno also allows an object with a command and a description. pkgr understands both:

{
"tasks": {
"build": { "description": "Bundle it", "command": "deno bundle main.ts" }
}
}

The row shows the command followed by the description in brackets. If a task has only a description (for example it only depends on other tasks), the description is shown on its own.

Both deno.json and deno.jsonc may contain comments and trailing commas. pkgr tolerates them in either file, and in package.json too.

Tasks are shown in the order they appear in the file. They are not sorted.

Support the project: Buy Me a Coffee or GitHub Sponsors.