Skip to content

Commit

Permalink
chore: copy-version should emit prettified code
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko committed Mar 14, 2024
1 parent 4dcbda3 commit fdaf4ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/copy-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

echo -e "\033[34mℹ\033[0m Copying Version to \033[34msrc/version.ts\033[0m"
PACKAGE_VERSION=$(node -pe 'require(`./package.json`).version')
PACKAGE_STRING=\"'$PACKAGE_VERSION'\"
echo 'export const version = '$PACKAGE_STRING';' > ./src/version.ts
echo -e "\033[32m✓\033[0m Done Copying Version"
echo 'export const version = "'$PACKAGE_VERSION'";' > ./src/version.ts
echo -e "\033[32m✓\033[0m Done Copying Version"

0 comments on commit fdaf4ee

Please sign in to comment.