chore: add code format on pack

This commit is contained in:
Lju
2024-04-10 22:34:04 +02:00
parent c3988cbd6e
commit d2f8936e5b
3 changed files with 18 additions and 0 deletions

5
.eslintignore Normal file
View File

@@ -0,0 +1,5 @@
.DS_Store
node_modules
package-lock.json
pnpm-lock.yaml
build

View File

@@ -1,4 +1,7 @@
.DS_Store
.github
.vscode
node_modules
package-lock.json
pnpm-lock.yaml
build

10
pack.sh
View File

@@ -55,6 +55,16 @@ if [ $? -ne 0 ]; then
exit 1
fi
# Format the code
log_message "Formatting the code..."
npm run format
# Check for errors
if [ $? -ne 0 ]; then
log_message "Failed to format the code"
exit 1
fi
# Run i18n.sh
if [ -f "${EXTENSION_DIR}/i18n.sh" ]; then
log_message "Running i18n.sh..."