From 787878c2f041c39baf69409d97e475cc36a0a91b Mon Sep 17 00:00:00 2001 From: Chris Freels Date: Wed, 7 Aug 2024 12:26:44 -0500 Subject: [PATCH] fix format scripts for windows --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ebf0425a..a760d4a5 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "clean-log": "rm -rf ./log", "lint": "eslint \"./src/**/*.ts\"", "update-docker-dev": "docker build -t registry.gitlab.com/shardeum/json-rpc-server:dev . --push", - "format-check": "prettier --check './src/**/*.ts'", - "format-fix": "prettier --write './src/**/*.ts'", + "format-check": "prettier --check \"./src/**/*.ts\"", + "format-fix": "prettier --write \"./src/**/*.ts\"", "check-patches": "node -e \"const { execSync } = require('child_process'); const patches = require('fs').readdirSync('.').filter(f => f.endsWith('.patch')); if (patches.length > 0) { let allPassed = true; patches.forEach(patch => { try { execSync('git apply --verbose --check ' + patch, { stdio: 'inherit' }); console.log('✔ ' + patch + ' can be applied successfully.'); } catch { console.error('✘ ' + patch + ' failed to apply.'); allPassed = false; } }); if (!allPassed) process.exit(1); } else { console.log('No patch files found.'); }\"" }, "author": "thantsintoe",