Skip to content

Commit

Permalink
Script to prepare npm package copies design tokens root package.json …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
ty2k committed Aug 19, 2024
1 parent fffc63b commit cca4844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/design-tokens/run-prepare-npm-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ rm -rf dist/js*

# Copy the contents of build into dist
cp -R build/* dist

# Update the version in dist/package.json to match the root package.json version
ROOT_VERSION=$(jq -r '.version' package.json)
jq --arg version "$ROOT_VERSION" '.version = $version' dist/package.json > tmp.$$.json && mv tmp.$$.json dist/package.json

0 comments on commit cca4844

Please sign in to comment.