worker-typescript-template icon indicating copy to clipboard operation
worker-typescript-template copied to clipboard

Fix Prettier scripts on Windows

Open markashleybell opened this issue 4 years ago • 0 comments
trafficstars

On Windows, running either of the npm scripts which call Prettier (lint' or format`) fails with "no files matching" errors:

NPM Output

It seems like this is because Windows is ignoring the single quotes wrapping the path patterns. Wrapping the patterns with double quotes seems to work fine, and should also work under Linux; at least it does under my WSL install of Ubuntu 18.04.

So this commit just replaces the quotes in the package.json script definitions with escaped double quotes.

markashleybell avatar Sep 13 '21 10:09 markashleybell