worker-typescript-template
worker-typescript-template copied to clipboard
Fix Prettier scripts on Windows
trafficstars
On Windows, running either of the npm scripts which call Prettier (lint' or format`) fails with "no files matching" errors:

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.