From ce213c3e438b2924b49e06725b29b22f943c110a Mon Sep 17 00:00:00 2001 From: Davide Cazzin Date: Thu, 14 Feb 2019 23:28:50 +0100 Subject: [PATCH] fix: npm run format (#252) According to my understanding the script `format`: `prettier --write 'src/**/*.js'` doesn't need the apices. The old syntax generated the following error: ``` > gatsby-store@1.0.0 format C:\Users\[USER]\[PATH]\store.gatsbyjs.org > prettier --write 'src/**/*.js' [error] No matching files. Patterns tried: 'src/**/*.js' !**/node_modules/** !./node_modules/** !**/.{git,svn,hg}/** !./.{git,svn,hg}/** npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! gatsby-store@1.0.0 format: `prettier --write 'src/**/*.js'` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the gatsby-store@1.0.0 format script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\[USER]\AppData\Roaming\npm-cache\_logs\2019-02-14T20_06_48_090Z-debug.log ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f848fa4d..605c0ccf 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "build": "gatsby build", "serve": "gatsby serve", "develop": "gatsby develop", - "format": "prettier --write 'src/**/*.js'", + "format": "prettier --write src/**/*.js", "lint": "echo \"Error: no linter specified\" && exit 0", "start": "npm run develop", "test": "echo \"Error: no test specified\" && exit 0",