This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/scripts/update-yarn.sh

8 lines
220 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p yarn2nix
SOURCE=$1
WRITE_PATH=$2
yarn2nix --lockfile $1/yarn.lock > $WRITE_PATH/yarn.nix
cp $1/package.json $WRITE_PATH/package.json
cp $1/yarn.lock $WRITE_PATH/yarn.lock