stagehand/package.json
Sean McGuire 93bbf026e9
[chore]: add error cause lint rule (#1745)
# why
- to enforce best practices in error handling by requiring the cause of
a given error to be included in the error that gets thrown
# what changed
- added the `preserve-caught-error` lint rule
- updated calls that were not preserving caught errors
- also bumped eslint version & typescript eslint for compatibility with
the new rule

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds an ESLint rule to require preserving the original error when
rethrowing, updates code to pass error causes, and fixes related linting
issues. This improves debugging by linking errors via the cause option.

- **Dependencies**
  - ESLint → 10.0.2
  - @eslint/js → 10.0.1
  - typescript-eslint → 8.56.1

<sup>Written for commit b4cd5039b34b8156a1b55a88196d9aabc97c51d7.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1745">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-02-24 14:03:33 -08:00

80 lines
3.0 KiB
JSON

{
"name": "stagehand-workspace",
"version": "0.0.0",
"private": true,
"description": "Stagehand monorepo workspace",
"type": "module",
"scripts": {
"build": "turbo run build",
"build:full": "turbo run build",
"build:cjs": "turbo run build:cjs",
"build:cli": "turbo run build:cli",
"build:esm": "turbo run build:esm",
"build:sea": "turbo run build:sea:esm",
"build:sea:esm": "turbo run build:sea:esm",
"build:sea:cjs": "turbo run build:sea:cjs",
"lint": "turbo run lint",
"format": "prettier --write .",
"prettier": "prettier --write .",
"eslint": "eslint .",
"test": "turbo run test:core test:e2e test:server test:evals",
"test:core": "turbo run test:core --",
"test:core:local": "STAGEHAND_BROWSER_TARGET=local pnpm run test:core --",
"test:core:bb": "STAGEHAND_BROWSER_TARGET=browserbase pnpm run test:core --",
"test:e2e": "turbo run test:e2e --",
"test:e2e:local": "STAGEHAND_BROWSER_TARGET=local pnpm run test:e2e --",
"test:e2e:bb": "STAGEHAND_BROWSER_TARGET=browserbase pnpm run test:e2e --",
"test:server": "turbo run test:server --",
"test:server:sea": "STAGEHAND_SERVER_TARGET=sea pnpm run test:server --",
"test:server:local": "STAGEHAND_SERVER_TARGET=local pnpm run test:server --",
"test:server:remote": "STAGEHAND_SERVER_TARGET=remote pnpm run test:server --",
"test:evals": "turbo run test:evals --",
"test:evals:local": "STAGEHAND_BROWSER_TARGET=local pnpm run test:evals --",
"test:evals:bb": "STAGEHAND_BROWSER_TARGET=browserbase pnpm run test:evals --",
"coverage:merge": "pnpm -w exec tsx packages/core/scripts/coverage.ts merge",
"docs": "turbo run docs",
"dev": "turbo run dev",
"example": "pnpm --filter @browserbasehq/stagehand run example --",
"cache:clear": "turbo run build --force",
"prepare": "node packages/core/scripts/prepare.js",
"release": "turbo run build && changeset publish",
"release-canary": "turbo run build && changeset version --snapshot && changeset publish --tag alpha"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@eslint/js": "^10.0.1",
"c8": "^10.1.3",
"dotenv": "^17.3.1",
"esbuild": "0.27.2",
"eslint": "^10.0.2",
"eslint-plugin-security": "^3.0.1",
"globals": "^15.13.0",
"junit-to-ctrf": "^0.0.14",
"prettier": "^3.2.5",
"source-map": "^0.7.4",
"tsx": "^4.19.4",
"turbo": "^2.8.10",
"typescript": "5.8.3",
"typescript-eslint": "^8.56.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/browserbase/stagehand.git"
},
"bugs": {
"url": "https://github.com/browserbase/stagehand/issues"
},
"homepage": "https://stagehand.dev",
"overrides": {
"whatwg-url": "^14.0.0",
"jwa": "^2.0.1",
"zod": "4.2.1",
"tsx": "4.19.4"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}