mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
✨ Add correct library version on the metadata
This commit is contained in:
parent
1450672341
commit
1080ffc6b8
@ -52,7 +52,7 @@ await penpot.exportStream(context, writable);
|
|||||||
Build the library:
|
Build the library:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn run build
|
./scripts/build
|
||||||
```
|
```
|
||||||
|
|
||||||
Login on npm:
|
Login on npm:
|
||||||
|
|||||||
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
|
||||||
@ -190,8 +190,7 @@
|
|||||||
:features (:features file)})))
|
:features (:features file)})))
|
||||||
params {:type "penpot/export-files"
|
params {:type "penpot/export-files"
|
||||||
:version 1
|
:version 1
|
||||||
;; FIXME: set proper placeholder for replacement on build
|
:generated-by "penpot-library/%version%"
|
||||||
:generated-by "penpot-lib/develop"
|
|
||||||
:files files
|
:files files
|
||||||
:relations []}]
|
:relations []}]
|
||||||
["manifest.json" (delay (json/encode params))]))
|
["manifest.json" (delay (json/encode params))]))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user