Skip to content

Commit

Permalink
Use yarn pack with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdouglas committed Feb 28, 2025
1 parent b995f90 commit 45e17b7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions scripts/pack-npm
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
set -e
set -o pipefail

packable_paths="packages/colors packages/core packages/datetime packages/datetime2 packages/icons packages/select packages/table"
packages=("colors" "core" "datetime" "datetime2" "icons" "select" "table")

mkdir -p artifacts

for package in ${packages[@]}; do
path="packages/$package"
pushd $path

version=$(jq -r '.version' package.json)
filename="../../artifacts/blueprintjs-$(basename "$path")-$version.tgz"

for path in $packable_paths; do
pushd "$path"
echo "Attempting to pack package at path '$path'"
npm pack --pack-destination="../../artifacts"
yarn pack --filename $filename

popd
done

1 comment on commit 45e17b7

@svc-palantir-github
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use yarn pack with jq

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.