From 073a6b9e63905acdf36244ca4710539c15719828 Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Mon, 27 May 2024 17:00:19 +0100 Subject: [PATCH] Added formatting to CI --- package.json | 3 ++- turbo.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a8a37c7..a746dbe 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,13 @@ "scripts": { "dev": "tsc --watch", "build": "tsx scripts/build.ts", - "ci": "turbo build check-exports lint lint-pkg-json", + "ci": "turbo build check-exports lint lint-pkg-json format:check", "check-exports": "check-export-map", "lint": "tsc", "lint-pkg-json": "tsx scripts/lint.ts", "release": "turbo run publish", "publish": "changeset publish", + "format:check": "prettier \"./src/**/**.ts\" --check", "format": "prettier --write \"./src/**/**.ts\" --write" }, "main": "./dist/recommended.js", diff --git a/turbo.json b/turbo.json index 388ce3c..88ca31d 100644 --- a/turbo.json +++ b/turbo.json @@ -8,6 +8,7 @@ "dependsOn": ["build"] }, "lint": {}, + "format-check": {}, "lint-pkg-json": {}, "publish": { "dependsOn": ["build", "check-exports", "lint", "lint-pkg-json"],