From 618a7ec0f801a1d02ba720db638a377ae8425546 Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Mon, 20 May 2019 11:21:45 -0400 Subject: [PATCH] Change npm format to format-check and add format command --- .github/main.workflow | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 99b3568e..cf141b0f 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -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" { diff --git a/package.json b/package.json index c93a4cda..e4fc977b 100644 --- a/package.json +++ b/package.json @@ -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" },