From 173be01002e015604c7c16a83942b608d7a619c7 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sat, 3 Aug 2019 16:39:40 +0200 Subject: [PATCH] Make npm scripts for prettier run on Windows see http://blog.jonasbandi.net/2016/04/crossplatform-npm.html --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 59ce34279d..a4f6588bb6 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "testonly:cover": "nyc npm run testonly", "lint": "eslint --cache --report-unused-disable-directives src resources", "benchmark": "node --predictable ./resources/benchmark.js", - "prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,md,json,yml}'", - "prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,md,json,yml}'", + "prettier": "prettier --ignore-path .gitignore --write --list-different \"**/*.{js,md,json,yml}\"", + "prettier:check": "prettier --ignore-path .gitignore --check \"**/*.{js,md,json,yml}\"", "check": "flow check", "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "build": "node resources/build.js",