mirror of
https://github.com/AstraExt/astra-monitor.git
synced 2025-11-06 15:44:14 +08:00
chore: add code format on pack
This commit is contained in:
5
.eslintignore
Normal file
5
.eslintignore
Normal file
@@ -0,0 +1,5 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
build
|
||||
@@ -1,4 +1,7 @@
|
||||
.DS_Store
|
||||
.github
|
||||
.vscode
|
||||
node_modules
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
build
|
||||
|
||||
10
pack.sh
10
pack.sh
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user