From 391a11078d456e8ccfbf33b7c3af95136115b5e8 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Thu, 2 Jan 2025 13:43:36 -0600 Subject: [PATCH] fix: pnpm dev Not quite optimal, and requires a bit of bootstrapping, but it works alright. --- package.json | 2 +- packages/eslint-config-sheriff/package.json | 1 + packages/sheriff-cli/package.json | 1 + packages/sheriff-create-config/package.json | 1 + turbo.json | 5 +++++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ea8b270..01b274ef 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "sheriff-monorepo", "private": true, "scripts": { - "dev": "turbo watch eslint-config-sheriff#build @sherifforg/create-config#build start", + "dev": "turbo start build:watch", "dev:norebuild": "turbo start", "build": "turbo run build", "playground": "pnpm --filter=cli-playground exec create-config", diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index 3b94a062..44abd1b5 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -49,6 +49,7 @@ "re-bundle-types": "dts-bundle-generator --config dts-config.json", "are-the-types-wrong": "attw --pack --profile=esm-only", "build": "tsup && pnpm re-bundle-types", + "build:watch": "tsup --watch", "typecheck": "tsc", "lint": "eslint src --max-warnings=0 --flag unstable_ts_config", "publint": "publint" diff --git a/packages/sheriff-cli/package.json b/packages/sheriff-cli/package.json index 9fee516e..1cec29ed 100644 --- a/packages/sheriff-cli/package.json +++ b/packages/sheriff-cli/package.json @@ -6,6 +6,7 @@ "scripts": { "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", + "build:watch": "tsup --watch", "typecheck": "tsc", "lint": "eslint ./src --max-warnings=0", "publint": "publint" diff --git a/packages/sheriff-create-config/package.json b/packages/sheriff-create-config/package.json index 66386a79..1c04fcd8 100644 --- a/packages/sheriff-create-config/package.json +++ b/packages/sheriff-create-config/package.json @@ -7,6 +7,7 @@ "dev": "tsx ./src/index.ts", "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", + "build:watch": "tsup --watch", "typecheck": "tsc", "lint": "eslint ./src --max-warnings=0 --flag unstable_ts_config", "publint": "publint" diff --git a/turbo.json b/turbo.json index 9aa5f975..ee284cfb 100644 --- a/turbo.json +++ b/turbo.json @@ -10,6 +10,11 @@ "dependsOn": ["^build"], "outputs": [".docusaurus/**", "dist/**"] }, + "build:watch": { + "cache": false, + "persistent": true, + "outputs": ["dist/**"] + }, "start": { "cache": false, "persistent": true,