Skip to content

Commit

Permalink
Tar
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Chung <samc@seek.com.au>
  • Loading branch information
72636c and samchungy committed Jan 9, 2024
1 parent 0280758 commit 3e7c1ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/test-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi

directory="tmp-${template}"

types_jest="@types/jest@$(jq --raw-output '.dependencies."@types/jest"' < package.json)"
skuba_tar="skuba-$(jq --raw-output '.version' < package.json).tgz"

echo '--- cleanup'
rm -rf "${directory}" "../${directory}"
Expand All @@ -21,6 +21,9 @@ pnpm install --frozen-lockfile
echo '--- pnpm run build'
pnpm run build

echo '--- npm pack'
npm pack

echo "--- skuba init ${template}"
pnpm run skuba:exec init << EOF
{
Expand Down Expand Up @@ -49,9 +52,8 @@ mv "${directory}" "../${directory}"

cd "../${directory}" || exit 1

# @types/jest doesn't seem to get hoisted correctly when linking with pnpm.
echo "--- pnpm add --save-dev ../skuba ${types_jest}"
pnpm add --save-dev ../skuba "${types_jest}"
echo "--- pnpm add --save-dev ../skuba/${skuba_tar}"
pnpm add --save-dev "../skuba/${skuba_tar}"

echo "--- skuba version ${template}"
pnpm exec skuba version
Expand Down

0 comments on commit 3e7c1ff

Please sign in to comment.