mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
Package.json: Switch yarn format and format:check
Make `yarn format` check the files and `yarn format:fix` do the actually fixing fixes #920 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
9b211cec6f
commit
c4875ff8ca
2 changed files with 3 additions and 3 deletions
2
.github/workflows/nest.js.yml
vendored
2
.github/workflows/nest.js.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
matrix:
|
||||
command:
|
||||
- yarn run lint
|
||||
- yarn run format:check
|
||||
- yarn run format
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 14
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "nest build",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"format:fix": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"start": "nest start",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
|
|
Loading…
Reference in a new issue