diff --git a/package.json b/package.json index ec3b99f..7dcd0d7 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "prepare": "bin/prepare", "build": "turbo run build", "build:watch": "turbo run build:watch", - "checks": "run-s lint && turbo run checks", + "checks": "turbo run checks", "release": "run-s build && changeset publish", "format": "prettier --write \"**/*.{ts,tsx,md,json,js}\"", - "lint": "run-s build && xo", + "lint": "turbo run lint", "test": "turbo run test", "test:watch": "turbo run test:watch", "changeset": "changeset", diff --git a/packages/cli/package.json b/packages/cli/package.json index 1a5cd75..aa64880 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -22,7 +22,8 @@ ], "scripts": { "build": "tsc --pretty", - "build:watch": "tsc --pretty --watch" + "build:watch": "tsc --pretty --watch", + "lint": "xo --cwd=../.. $(pwd)" }, "keywords": [ "migrate", diff --git a/packages/plugin-generate-js/package.json b/packages/plugin-generate-js/package.json index 7f47019..c515563 100644 --- a/packages/plugin-generate-js/package.json +++ b/packages/plugin-generate-js/package.json @@ -19,7 +19,8 @@ ], "scripts": { "build": "tsc --pretty", - "build:watch": "tsc --pretty --watch" + "build:watch": "tsc --pretty --watch", + "lint": "xo --cwd=../.. $(pwd)" }, "keywords": [ "emigrate", diff --git a/packages/plugin-storage-fs/package.json b/packages/plugin-storage-fs/package.json index 59acfa7..b09ea01 100644 --- a/packages/plugin-storage-fs/package.json +++ b/packages/plugin-storage-fs/package.json @@ -19,7 +19,8 @@ ], "scripts": { "build": "tsc --pretty", - "build:watch": "tsc --pretty --watch" + "build:watch": "tsc --pretty --watch", + "lint": "xo --cwd=../.. $(pwd)" }, "keywords": [ "emigrate", diff --git a/packages/plugin-tools/package.json b/packages/plugin-tools/package.json index 850091d..4b38bc9 100644 --- a/packages/plugin-tools/package.json +++ b/packages/plugin-tools/package.json @@ -25,7 +25,8 @@ "build": "tsc --pretty", "build:watch": "tsc --pretty --watch", "test": "glob -c \"node --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"", - "test:watch": "glob -c \"node --watch --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"" + "test:watch": "glob -c \"node --watch --import tsx --test-reporter spec --test\" \"./src/**/*.test.ts\"", + "lint": "xo --cwd=../.. $(pwd)" }, "keywords": [ "emigrate", diff --git a/turbo.json b/turbo.json index 998f069..fd378b6 100644 --- a/turbo.json +++ b/turbo.json @@ -24,7 +24,12 @@ "persistent": true }, "checks": { - "dependsOn": ["build", "test"], + "dependsOn": ["build", "lint", "test"], + "outputs": [] + }, + "lint": { + "dependsOn": ["^build"], + "inputs": ["src/**/*"], "outputs": [] } }