From 5422f9f23fd373d8c2315d16652b5d62ab09e1d7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 6 Sep 2025 10:30:57 -0700 Subject: [PATCH] Explicitly specify npm project path in task calls Since the `npm:install-deps` task has a default path, it is not mandatory to specify a path in the task calls. However, doing so makes the behavior of the caller task more clear --- Taskfile.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 5f72bec..727f67e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -78,6 +78,8 @@ tasks: WORKFLOWS_DATA_PATH: "./.github/workflows/*.{yml,yaml}" deps: - task: npm:install-deps + vars: + PROJECT_PATH: . cmds: - | wget \ @@ -148,6 +150,8 @@ tasks: desc: Format all supported files with Prettier deps: - task: npm:install-deps + vars: + PROJECT_PATH: . cmds: - | npx \ @@ -279,6 +283,8 @@ tasks: deps: - task: docs:generate - task: npm:install-deps + vars: + PROJECT_PATH: . cmds: - | npx \ @@ -290,6 +296,8 @@ tasks: desc: Automatically correct linting violations in Markdown files where possible deps: - task: npm:install-deps + vars: + PROJECT_PATH: . cmds: - | npx \ @@ -302,6 +310,8 @@ tasks: desc: Check for problems in Markdown files deps: - task: npm:install-deps + vars: + PROJECT_PATH: . cmds: - | npx \