Fix build script.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2021-05-05 04:44:30 +08:00
parent db7490ffe6
commit 0651e8187d
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
4 changed files with 9 additions and 4 deletions

View File

@ -8,6 +8,10 @@ this notice are preserved. This file is offered as-is, without any warranty.
# Changelog
## v0.2.1 - 05/05/2021
* Fix an error in build script which produces corrupted metadata in `.vsix` package.
## v0.2.0 - 05/05/2021
* Add version indicator (as status bar item).

2
package-lock.json generated
View File

@ -6,7 +6,7 @@
"This file is offered as-is, without any warranty."
],
"name": "texinfo",
"version": "0.2.0",
"version": "0.2.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -9,7 +9,7 @@
"displayName": "Texinfo Language Support",
"description": "Texinfo language support for Visual Studio Code",
"publisher": "cismonx",
"version": "0.2.0",
"version": "0.2.1",
"author": {
"name": "CismonX",
"email": "admin@cismon.net",

View File

@ -14,8 +14,9 @@ vsce package --baseContentUrl=$(json -f package.json repository.url)/tree
unzip -d $VSIX_FILE_NAME{.d,}
cd $VSIX_FILE_NAME.d
minify-xml --output \[Content_Types\].xml{,}
minify-xml --output extension.vsixmanifest{,}
MINIFY_XML_OPTIONS='--no-shorten-namespaces --no-remove-unused-namespaces --no-remove-unused-default-namespace'
minify-xml $MINIFY_XML_OPTIONS --output \[Content_Types\].xml{,}
minify-xml $MINIFY_XML_OPTIONS --output extension.vsixmanifest{,}
cd extension
# Minify JSON files.
json -j0 -I -e "$PACKAGE_JSON_CLEANUP_JS" -f package.json