mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
e77b3af696
closes #6557
30 lines
638 B
YAML
30 lines
638 B
YAML
distributable:
|
|
url: https://registry.npmjs.org/@dotenvx/dotenvx/-/dotenvx-{{version}}.tgz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
npm: '@dotenvx/dotenvx'
|
|
|
|
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}}"
|
|
|
|
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
|