From e77b3af696e4394d36a1225591552d5e296d6c03 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sat, 29 Jun 2024 22:43:17 -0400 Subject: [PATCH] fix(dotenvx) closes #6557 --- projects/dotenvx.com/package.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/projects/dotenvx.com/package.yml b/projects/dotenvx.com/package.yml index e6f18508..ec0bbd22 100644 --- a/projects/dotenvx.com/package.yml +++ b/projects/dotenvx.com/package.yml @@ -9,13 +9,21 @@ dependencies: nodejs.org: ^16 || ^18 || ^20 build: + # 1.2.0 adds this and expects it on the path + - run: | + npm i -g patch-package + export PATH="$HOME/.local/bin:$PATH" + if: '>=1.2.0' - npm install . - --global - --install-links - --prefix="{{prefix}}" + --global + --install-links + --prefix="{{prefix}}" test: - dotenvx --version | grep {{version}} + - echo "HELLO=World" > .env + - run: test "$(dotenvx -q run -- sh $FIXTURE)" = "Hello, World!" + fixture: echo "Hello, $HELLO!" provides: - bin/dotenvx