From cdb75d10acf92957be1739f009994ed75a907534 Mon Sep 17 00:00:00 2001 From: Jimmy Callin Date: Tue, 23 Jun 2026 00:04:40 +0200 Subject: [PATCH] chore: remove redundant dev dependencies (@types/uuid, pinst) - Drop @types/uuid: uuid v14 ships its own type declarations, so the separate @types stub is dead weight (tsc passes without it). - Drop pinst and modernise the husky setup: husky is already v9, where the recommended hook installer is `prepare: husky`. Since `prepare` does not run when the package is installed as a dependency, the pinst dance (postinstall + prepack/postpack disable/enable) is no longer needed. Co-Authored-By: Claude Opus 4.8 (1M context) --- package.json | 7 ++----- yarn.lock | 29 ----------------------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index ba9a60e..d1f5c4f 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,9 @@ "lint": "tsc && eslint . && prettier -c .", "test": "vitest --run test && yarn lint", "build": "vite build", - "prepack": "yarn build && pinst --disable", + "prepack": "yarn build", "prepublish": "yarn test", - "postinstall": "husky install", - "postpack": "pinst --enable" + "prepare": "husky" }, "type": "module", "main": "./dist/ftrack-javascript-api.umd.cjs", @@ -30,7 +29,6 @@ "devDependencies": { "@eslint/js": "^10.0.0", "@types/node": "^24.10.8", - "@types/uuid": "^11.0.0", "@types/ws": "^8.18.1", "@vitest/eslint-plugin": "^1.6.6", "dayjs": "^1.11.19", @@ -40,7 +38,6 @@ "jsdom": "^29.0.0", "lint-staged": "^16.2.7", "msw": "^2.12.7", - "pinst": "^3.0.0", "prettier": "^3.7.4", "typescript": "^6.0.0", "typescript-eslint": "^8.57.2", diff --git a/yarn.lock b/yarn.lock index f83ea3a..14df0bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -255,7 +255,6 @@ __metadata: dependencies: "@eslint/js": "npm:^10.0.0" "@types/node": "npm:^24.10.8" - "@types/uuid": "npm:^11.0.0" "@types/ws": "npm:^8.18.1" "@vitest/eslint-plugin": "npm:^1.6.6" dayjs: "npm:^1.11.19" @@ -266,7 +265,6 @@ __metadata: lint-staged: "npm:^16.2.7" loglevel: "npm:^1.9.2" msw: "npm:^2.12.7" - pinst: "npm:^3.0.0" prettier: "npm:^3.7.4" typescript: "npm:^6.0.0" typescript-eslint: "npm:^8.57.2" @@ -792,15 +790,6 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^11.0.0": - version: 11.0.0 - resolution: "@types/uuid@npm:11.0.0" - dependencies: - uuid: "npm:*" - checksum: 10/9f94bd34e5d220c53cc58ea9f48a0061d3bc343e29bc33a17edc705f5e21fedda21553318151f2bc227c2b2b03727bbb536da2b82a61f84d2e1ca38abc5e5c3f - languageName: node - linkType: hard - "@types/ws@npm:^8.18.1": version: 8.18.1 resolution: "@types/ws@npm:8.18.1" @@ -3211,15 +3200,6 @@ __metadata: languageName: node linkType: hard -"pinst@npm:^3.0.0": - version: 3.0.0 - resolution: "pinst@npm:3.0.0" - bin: - pinst: bin.js - checksum: 10/a75e4f7b5eeb9c76e7fd1b2d9854fcd38c304a3b1f9b563946a0f4357772c742222094e851f4c23d0bbdc4151af2d7875bb919c9ef8a9c4af77a02a73e8f72f0 - languageName: node - linkType: hard - "pkg-types@npm:^1.3.0": version: 1.3.1 resolution: "pkg-types@npm:1.3.1" @@ -4010,15 +3990,6 @@ __metadata: languageName: node linkType: hard -"uuid@npm:*": - version: 13.0.0 - resolution: "uuid@npm:13.0.0" - bin: - uuid: dist-node/bin/uuid - checksum: 10/2742b24d1e00257e60612572e4d28679423469998cafbaf1fe9f1482e3edf9c40754b31bfdb3d08d71b29239f227a304588f75210b3b48f2609f0673f1feccef - languageName: node - linkType: hard - "uuid@npm:^14.0.0": version: 14.0.0 resolution: "uuid@npm:14.0.0"