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..69833902 100644 --- a/turbo.json +++ b/turbo.json @@ -7,9 +7,14 @@ "dependsOn": ["^topo"] }, "build": { - "dependsOn": ["^build"], + "dependsOn": ["^topo", "^build"], "outputs": [".docusaurus/**", "dist/**"] }, + "build:watch": { + "cache": false, + "persistent": true, + "outputs": ["dist/**"] + }, "start": { "cache": false, "persistent": true,