1
0
Fork 0

Change npm format to format-check and add format command

pull/6/head
Jonathan Clem 2019-05-20 11:21:45 -04:00
parent 2bd641ee75
commit 618a7ec0f8
No known key found for this signature in database
GPG Key ID: 48C5B22E9FD6E80F
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ action "Compile" {
action "Format" {
needs = "Dependencies"
uses = "actions/npm@v2.0.0"
args = "run format"
args = "run format-check"
}
action "Test" {

View File

@ -4,7 +4,8 @@
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "lerna run tsc",
"format": "prettier --check packages/*/src/**/*.ts",
"format": "prettier --write packages/*/src/**/*.ts",
"format-check": "prettier --check packages/*/src/**/*.ts",
"new-package": "scripts/create-package",
"test": "jest"
},