Skip to content

Commit

Permalink
fix: pnpm dev
Browse files Browse the repository at this point in the history
Not quite optimal, and requires a bit of bootstrapping, but it works alright.
  • Loading branch information
lishaduck committed Jan 5, 2025
1 parent e6ae056 commit 391a110
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-sheriff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/sheriff-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/sheriff-create-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"dependsOn": ["^build"],
"outputs": [".docusaurus/**", "dist/**"]
},
"build:watch": {
"cache": false,
"persistent": true,
"outputs": ["dist/**"]
},
"start": {
"cache": false,
"persistent": true,
Expand Down

0 comments on commit 391a110

Please sign in to comment.