From 2ca4a78257db4d01c9a48a023909ebedbaa9c296 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Sat, 21 Sep 2024 20:18:29 +0200 Subject: [PATCH 1/2] chore(internals): implemented turbo watch on dev command Fixes #227 --- package.json | 5 +- packages/eslint-config-sheriff/package.json | 1 + packages/sheriff-create-config/package.json | 1 + packages/sheriff-utils/package.json | 1 - pnpm-lock.yaml | 58 ++++++++++----------- turbo.json | 4 ++ 6 files changed, 37 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index bb620b3a..9b19a6fc 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,10 @@ "name": "sheriff-monorepo", "private": true, "scripts": { + "dev": "turbo watch build-watch start", "build": "turbo run build", - "start:docs": "turbo run start --filter=docs-website --filter=sheriff-webservices", "playground": "pnpm --filter=cli-playground exec create-config", "playground:mimic-monorepo": "pnpm exec create-config --filter=cli-playground", - "webservices:dev": "turbo run start --filter=sheriff-webservices", "webservices:deploy": "turbo run serve --filter=sheriff-webservices", "preview-docs": "turbo run serve --filter=docs-website", "format": "prettier --write \"**/*.{ts,tsx,md}\"", @@ -35,7 +34,7 @@ "@turbo/gen": "^2.0.9", "knip": "^5.25.1", "prettier": "^3.3.2", - "turbo": "^2.0.9", + "turbo": "^2.1.2", "typesync": "^0.13.0" }, "packageManager": "pnpm@9.10.0", diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index b1b13955..05018e95 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -46,6 +46,7 @@ "preinstall": "npx only-allow pnpm", "clean": "rm -rf .turbo dist", "build": "tsup", + "build-watch": "tsup", "typecheck": "tsc --noEmit", "publint": "publint", "typesync": "typesync --dry=fail", diff --git a/packages/sheriff-create-config/package.json b/packages/sheriff-create-config/package.json index 8c799fa8..6ba7e416 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", "build": "tsup", + "build-watch": "tsup", "typecheck": "tsc --noEmit", "lint": "eslint . --max-warnings=0 --cache --cache-location=node_modules/.cache/.eslintcache", "publint": "publint", diff --git a/packages/sheriff-utils/package.json b/packages/sheriff-utils/package.json index 7e7b9df1..bab7f9a6 100644 --- a/packages/sheriff-utils/package.json +++ b/packages/sheriff-utils/package.json @@ -13,7 +13,6 @@ } }, "scripts": { - "start": "tsx watch ./src/generateRulesDataset.ts", "rulesgen": "tsx ./src/generateRulesDataset.ts", "publint": "publint", "clean": "rm -rf .turb dist" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9dbd607..08a19164 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ^3.3.2 version: 3.3.3 turbo: - specifier: ^2.0.9 - version: 2.0.9 + specifier: ^2.1.2 + version: 2.1.2 typesync: specifier: ^0.13.0 version: 0.13.0(typescript@5.5.4) @@ -8864,38 +8864,38 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - turbo-darwin-64@2.0.9: - resolution: {integrity: sha512-owlGsOaExuVGBUfrnJwjkL1BWlvefjSKczEAcpLx4BI7Oh6ttakOi+JyomkPkFlYElRpjbvlR2gP8WIn6M/+xQ==} + turbo-darwin-64@2.1.2: + resolution: {integrity: sha512-3TEBxHWh99h2yIzkuIigMEOXt/ItYQp0aPiJjPd1xN4oDcsKK5AxiFKPH9pdtfIBzYsY59kQhZiFj0ELnSP7Bw==} cpu: [x64] os: [darwin] - turbo-darwin-arm64@2.0.9: - resolution: {integrity: sha512-XAXkKkePth5ZPPE/9G9tTnPQx0C8UTkGWmNGYkpmGgRr8NedW+HrPsi9N0HcjzzIH9A4TpNYvtiV+WcwdaEjKA==} + turbo-darwin-arm64@2.1.2: + resolution: {integrity: sha512-he0miWNq2WxJzsH82jS2Z4MXpnkzn9SH8a79iPXiJkq25QREImucscM4RPasXm8wARp91pyysJMq6aasD45CeA==} cpu: [arm64] os: [darwin] - turbo-linux-64@2.0.9: - resolution: {integrity: sha512-l9wSgEjrCFM1aG16zItBsZ206ZlhSSx1owB8Cgskfv0XyIXRGHRkluihiaxkp+UeU5WoEfz4EN5toc+ICA0q0w==} + turbo-linux-64@2.1.2: + resolution: {integrity: sha512-fKUBcc0rK8Vdqv5a/E3CSpMBLG1bzwv+Q0Q83F8fG2ZfNCNKGbcEYABdonNZkkx141Rj03cZQFCgxu3MVEGU+A==} cpu: [x64] os: [linux] - turbo-linux-arm64@2.0.9: - resolution: {integrity: sha512-gRnjxXRne18B27SwxXMqL3fJu7jw/8kBrOBTBNRSmZZiG1Uu3nbnP7b4lgrA/bCku6C0Wligwqurvtpq6+nFHA==} + turbo-linux-arm64@2.1.2: + resolution: {integrity: sha512-sV8Bpmm0WiuxgbhxymcC7wSsuxfBBieI98GegSwbr/bs1ANAgzCg93urIrdKdQ3/b31zZxQwcaP4FBF1wx1Qdg==} cpu: [arm64] os: [linux] - turbo-windows-64@2.0.9: - resolution: {integrity: sha512-ZVo0apxUvaRq4Vm1qhsfqKKhtRgReYlBVf9MQvVU1O9AoyydEQvLDO1ryqpXDZWpcHoFxHAQc9msjAMtE5K2lA==} + turbo-windows-64@2.1.2: + resolution: {integrity: sha512-wcmIJZI9ORT9ykHGliFE6kWRQrlH930QGSjSgWC8uFChFFuOyUlvC7ttcxuSvU9VqC7NF4C+GVAcFJQ8lTjN7g==} cpu: [x64] os: [win32] - turbo-windows-arm64@2.0.9: - resolution: {integrity: sha512-sGRz7c5Pey6y7y9OKi8ypbWNuIRPF9y8xcMqL56OZifSUSo+X2EOsOleR9MKxQXVaqHPGOUKWsE6y8hxBi9pag==} + turbo-windows-arm64@2.1.2: + resolution: {integrity: sha512-zdnXjrhk7YO6CP+Q5wPueEvOCLH4lDa6C4rrwiakcWcPgcQGbVozJlo4uaQ6awo8HLWQEvOwu84RkWTdLAc/Hw==} cpu: [arm64] os: [win32] - turbo@2.0.9: - resolution: {integrity: sha512-QaLaUL1CqblSKKPgLrFW3lZWkWG4pGBQNW+q1ScJB5v1D/nFWtsrD/yZljW/bdawg90ihi4/ftQJ3h6fz1FamA==} + turbo@2.1.2: + resolution: {integrity: sha512-Jb0rbU4iHEVQ18An/YfakdIv9rKnd3zUfSE117EngrfWXFHo3RndVH96US3GsT8VHpwTncPePDBT2t06PaFLrw==} hasBin: true type-check@0.4.0: @@ -20009,32 +20009,32 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - turbo-darwin-64@2.0.9: + turbo-darwin-64@2.1.2: optional: true - turbo-darwin-arm64@2.0.9: + turbo-darwin-arm64@2.1.2: optional: true - turbo-linux-64@2.0.9: + turbo-linux-64@2.1.2: optional: true - turbo-linux-arm64@2.0.9: + turbo-linux-arm64@2.1.2: optional: true - turbo-windows-64@2.0.9: + turbo-windows-64@2.1.2: optional: true - turbo-windows-arm64@2.0.9: + turbo-windows-arm64@2.1.2: optional: true - turbo@2.0.9: + turbo@2.1.2: optionalDependencies: - turbo-darwin-64: 2.0.9 - turbo-darwin-arm64: 2.0.9 - turbo-linux-64: 2.0.9 - turbo-linux-arm64: 2.0.9 - turbo-windows-64: 2.0.9 - turbo-windows-arm64: 2.0.9 + turbo-darwin-64: 2.1.2 + turbo-darwin-arm64: 2.1.2 + turbo-linux-64: 2.1.2 + turbo-linux-arm64: 2.1.2 + turbo-windows-64: 2.1.2 + turbo-windows-arm64: 2.1.2 type-check@0.4.0: dependencies: diff --git a/turbo.json b/turbo.json index 9ebb7a4f..02a0e554 100644 --- a/turbo.json +++ b/turbo.json @@ -10,6 +10,10 @@ "dependsOn": ["^build"], "outputs": [".docusaurus/**", "dist/**"] }, + "build-watch": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, "start": { "cache": false, "persistent": true, From e598bd73c977b9fc14f7112c67a1b022376f5f32 Mon Sep 17 00:00:00 2001 From: AndreaPontrandolfo Date: Sat, 21 Sep 2024 20:19:46 +0200 Subject: [PATCH 2/2] added changeset --- .changeset/silent-balloons-sort.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/silent-balloons-sort.md diff --git a/.changeset/silent-balloons-sort.md b/.changeset/silent-balloons-sort.md new file mode 100644 index 00000000..8e138c88 --- /dev/null +++ b/.changeset/silent-balloons-sort.md @@ -0,0 +1,8 @@ +--- +'eslint-config-sheriff': patch +'@sherifforg/create-config': patch +'@sheriff/utils': patch +--- + +chore(internals): implemented turbo watch on dev command +Fixes #227