mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Add correct library version on the metadata
This commit is contained in:
12
library/scripts/build
Executable file
12
library/scripts/build
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# NOTE: this script should be called from the parent directory to
|
||||
# properly work.
|
||||
|
||||
export CURRENT_VERSION=$(node -p "require('./package.json').version");
|
||||
export NODE_ENV=production;
|
||||
|
||||
set -ex
|
||||
|
||||
yarn run build
|
||||
|
||||
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" target/library/penpot.js
|
||||
Reference in New Issue
Block a user