lseq/typescript/publish.sh

14 lines
328 B
Bash
Executable file

#!/bin/bash
set -e
npm run build
# Publish as lseq
sed -i '' 's/"name": "@peoplesgrocers\/lseq"/"name": "lseq"/' package.json
npm publish "$@"
sed -i '' 's/"name": "lseq"/"name": "@peoplesgrocers\/lseq"/' package.json
# Publish as @peoplesgrocers/lseq
npm publish "$@"
echo "Published to both lseq and @peoplesgrocers/lseq"