From bde4e3ef8b9a611dd3f01e07e2bdd32fd70ec96a Mon Sep 17 00:00:00 2001 From: philippe-perrin-sonarsource Date: Wed, 12 Jun 2019 10:15:16 +0200 Subject: [PATCH] Add support for yarn format-* scripts on windows --- server/sonar-docs/package.json | 4 ++-- server/sonar-vsts/package.json | 4 ++-- server/sonar-web/package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/sonar-docs/package.json b/server/sonar-docs/package.json index fefe53c9881..9b36e9600b8 100644 --- a/server/sonar-docs/package.json +++ b/server/sonar-docs/package.json @@ -60,8 +60,8 @@ "develop": "gatsby develop", "graphql-types": "gql-gen --url http://localhost:8000/___graphql --template typescript --out ./src/@types/graphql-types.d.ts", "test": "jest", - "format": "prettier --write --list-different 'src/**/*.{js,ts,tsx,css}'", - "format-check": "prettier --list-different 'src/**/*.{js,ts,tsx,css}'", + "format": "prettier --write --list-different \"src/**/*.{js,ts,tsx,css}\"", + "format-check": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", "lint": "eslint --ext js,ts,tsx --quiet src", "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src", "ts-check": "tsc --noEmit", diff --git a/server/sonar-vsts/package.json b/server/sonar-vsts/package.json index ea40f80df72..c38918dc0a1 100644 --- a/server/sonar-vsts/package.json +++ b/server/sonar-vsts/package.json @@ -74,8 +74,8 @@ "start": "node scripts/start.js", "build": "node scripts/build.js", "test": "jest --passWithNoTests", - "format": "prettier --write --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'", - "format-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'", + "format": "prettier --write --list-different \"src/main/js/!(libs)/**/*.{js,ts,tsx,css}\"", + "format-check": "prettier --list-different \"src/main/js/!(libs)/**/*.{js,ts,tsx,css}\"", "lint": "eslint --ext js,ts,tsx --quiet src/main/js", "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js", "ts-check": "tsc --noEmit", diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index 4139065226d..652397674a7 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -133,8 +133,8 @@ "build": "node scripts/build.js", "build-release": "node scripts/build.js release", "test": "jest", - "format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'", - "format-check": "prettier --list-different 'src/main/js/**/*.{js,ts,tsx,css}'", + "format": "prettier --write --list-different \"src/main/js/**/*.{js,ts,tsx,css}\"", + "format-check": "prettier --list-different \"src/main/js/**/*.{js,ts,tsx,css}\"", "lint": "eslint --ext js,ts,tsx --quiet src/main/js", "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js", "ts-check": "tsc --noEmit", -- 2.39.5