github dmno-dev/varlock varlock@0.7.3

4 hours ago

Patch Changes

  • #583 f640d08 - Builtin vars now have proper types: VARLOCK_IS_CI is now a boolean (was a string "true"/"false"), and VARLOCK_BUILD_URL is now a url type. String builtin vars remain unchanged.

  • #581 8337445 - Fix varlock init crashing on Linux when git is not installed.

    When git is not found in PATH, Node.js spawn fires an error event with a native ENOENT error that has no .data property. The checkIsFileGitIgnored utility was trying to call .includes() on the undefined .data value before reaching the ENOENT check, causing a TypeError that crashed the init command.

    The fix reorders the error checks to handle the ENOENT case first, and uses optional chaining on the errorOutput value throughout for additional safety.

  • #575 349d517 - Fix terminal colors when running commands with redaction enabled. When varlock run pipes stdout/stderr for redaction, it now automatically injects FORCE_COLOR into the child process environment when the parent terminal is a TTY. This preserves color output for tools using color libraries (chalk, kleur, etc.) while keeping redaction active.

  • #571 f582766 - Support multiple loadPath entries in package.json configuration.

    The varlock.loadPath option in package.json now accepts an array of paths in addition to a single string. When an array is provided, all paths are loaded and their environment variables are combined. Later entries in the array take higher precedence when the same variable is defined in multiple locations.

    {
      "varlock": {
        "loadPath": ["./apps/my-package/envs/", "./apps/other-package/envs/"]
      }
    }

    This is particularly useful in monorepos where different packages each have their own .env files.

Don't miss a new varlock release

NewReleases is sending notifications on new releases.