diff --git a/package.json b/package.json index 8fdc11a..c49e903 100644 --- a/package.json +++ b/package.json @@ -417,7 +417,8 @@ "deploy": "npx vsce publish -p", "deploy:insider": "node scripts/deploy-insider.js", "deploy:openvsx": "sh scripts/deploy-openvsx.sh", - "package": "npx vsce package" + "package": "npx vsce package", + "package:test": "sh scripts/package-test.sh" }, "devDependencies": { "@types/fs-extra": "8.1.0", diff --git a/scripts/package-test.sh b/scripts/package-test.sh new file mode 100644 index 0000000..ab4892e --- /dev/null +++ b/scripts/package-test.sh @@ -0,0 +1,11 @@ +#!/bin/zsh + +PACKAGE_VERSION=$(grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/') + +GREEN='\033[0;32m' +BLUE='\033[0;34m' +NC='\033[0m' # No Color + +echo "${BLUE}Packaging extension for version $PACKAGE_VERSION${NC}" +yarn package && zip compare-folders-$PACKAGE_VERSION.vsix.zip compare-folders-$PACKAGE_VERSION.vsix +echo "${GREEN}Packaged extension for version $PACKAGE_VERSION${NC}" \ No newline at end of file