From 9dcca9fe3eb3a183d9e931ed43040ec5ce5057e7 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 5 Apr 2023 11:02:33 +0200 Subject: [PATCH] Make NODE_ENV conditional and set it for all tasks. --- Makefile.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index da40cac..ab21fcb 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,11 +1,14 @@ [env] # Set BROWSER="firefox" if not already defined. +# All browser targets are defined in `source/types.d.ts` as a global `$browser`. BROWSER = { condition = { env_not_set = ["BROWSER"] }, value = "firefox" } +# Set NODE_ENV="development" if not already defined. +# Either "development" or "production" should be used. +NODE_ENV = { condition = { env_not_set = ["NODE_ENV"] }, value = "development" } # Start a browser instance that will reload the extension when changes are made. [tasks.dev] clear = true -env = { NODE_ENV = "development" } dependencies = ["build"] command = "pnpm" args = ["conc", "-c=auto", "-k", "makers watch", "makers run"]