Skip to content

Commit

Permalink
Fix(): Prettier error with a fresh install
Browse files Browse the repository at this point in the history
Got this error when trying to test a fresh install with 
```
npm install
npm run test
```
FIX: Made the syntax match the eslint command.

```
> [email protected] fmt D:\Libraries\Documents\Repos\kalidokit
> prettier --write 'src/**/*.ts'

[error] No files matching the pattern were found: "'src/**/*.ts'".
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] fmt: `prettier --write 'src/**/*.ts'`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] fmt script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above
```
  • Loading branch information
Stealcase committed Jan 16, 2022
1 parent 2143911 commit 7ea73f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build:lib": "tsc -p .",
"serve": "vite",
"prepare": "npm run build",
"fmt": "prettier --write 'src/**/*.ts'",
"fmt": "prettier --write \"src/**/*.ts\"",
"test": "npm run build && npm run dev",
"lint": "eslint \"src/**/*.ts\" --fix"
},
Expand Down

0 comments on commit 7ea73f8

Please sign in to comment.