Files
composiohq__composio/package.json
T
Alberto Schiabel f8cd90ce5a chore(ts): adopt Node 24 and pnpm 11 toolchain (#3646)
This PR:

- uses plain `tsdown` package scripts and a shared typed
`tsdown.config.base.ts` so Node 24 builds work without loader flags
- switches the repo dev/build toolchain to Node `24.17.0` and pnpm
`11.8.0` through `mise.toml`, `mise.lock`, and `pnpm-lock.yaml`
- marks the root package as ESM with `type: module`, matching the
TypeScript packages
- keeps Node `22.22.3` in the runtime/E2E matrices as the minimum
supported user runtime
- changes the TypeScript build workflow back to a single build on the
mise-managed toolchain and broadens path filters for
package-manager/build config files
- adds pnpm 11 build-script policy with `allowBuilds` and intentionally
ignored `sharp` builds
- enables tsdown ESM shims for the packaged CLI wrapper so `composio
--help` runs under Node 22 and Node 24

Verified locally:

- `CI=true pnpm install --frozen-lockfile`
- `pnpm lint`
- `pnpm run build:packages`
- `COMPOSIO_E2E_NODE_VERSION=22.22.3 pnpm --filter
@e2e-tests/node-esm-basic --filter @e2e-tests/node-cjs-basic run
test:e2e:node`
- `node ts/packages/cli/bin/composio.mjs --help` under Node `22.22.3`
and `24.17.0`
2026-06-24 18:58:11 +04:00

103 lines
3.9 KiB
JSON

{
"name": "composio",
"version": "0.10.0-alpha.1",
"private": true,
"type": "module",
"description": "",
"workspaces": [
"ts/packages/core",
"ts/packages/json-schema-to-zod",
"ts/packages/cli",
"ts/packages/cli-keyring",
"ts/packages/cli-local-tools",
"ts/packages/ts-builders",
"ts/packages/providers/*"
],
"scripts": {
"build": "turbo build",
"build:binary": "turbo build:binary --filter=./ts/packages/cli",
"build:binary:all": "turbo build:binary:all --filter=./ts/packages/cli",
"build:binary:checksums": "turbo build:binary:checksums --filter=./ts/packages/cli",
"install:binary": "turbo install:binary --filter=./ts/packages/cli",
"build:packages": "turbo build --filter=./ts/packages/**",
"cli:record": "turbo run record --filter=./ts/packages/cli",
"record": "turbo run record",
"test": "pnpm run test:install-sh && pnpm run test:release-workflow && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples",
"test:install-sh": "bash test/install-sh-release-resolution.test.sh",
"test:release-workflow": "bun run test/release-workflow.test.ts",
"test:examples": "tsx ts/scripts/validate-examples.ts",
"test:e2e": "turbo test:e2e --filter='@e2e-tests/*'",
"test:e2e:node": "turbo test:e2e:node --filter='@e2e-tests/node-*'",
"test:e2e:deno": "turbo test:e2e:deno --filter='@e2e-tests/deno-*'",
"test:e2e:cli": "turbo test:e2e:cli --filter='@e2e-tests/cli-*'",
"test:e2e:cloudflare": "turbo test:e2e:cloudflare --filter='@e2e-tests/cf-*'",
"test:ui": "vitest --ui",
"typecheck": "turbo typecheck --filter=./ts/packages/**",
"typecheck:tsc": "turbo typecheck:tsc --filter=./ts/packages/**",
"lint": "eslint ts/packages --ext .ts,.tsx",
"lint:packages": "eslint ts/packages --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"lint:fix:packages": "eslint ts/packages --ext .ts,.tsx --fix",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"preinstall": "./ts/scripts/pre-install.sh",
"prepare": "husky",
"create:provider": "bash ts/scripts/create-provider.sh",
"create:example": "bash ts/scripts/create-example.sh",
"check:peer-deps": "tsx ts/scripts/check-peer-deps.ts",
"update:peer-deps": "tsx ts/scripts/update-peer-deps.ts",
"prepublish": "pnpm run build:packages",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:release": "bash ts/scripts/changeset-release.sh",
"changeset:pre-enter": "changeset pre enter",
"changeset:pre-exit": "changeset pre exit",
"clean": "git clean -xdf .turbo node_modules ts/packages/**/.turbo ts/packages/**/node_modules ts/packages/**/dist",
"clean:workspace": "pnpm turbo clean"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">=24.17.0 <25",
"onFail": "warn"
}
},
"devDependencies": {
"@arethetypeswrong/cli": "catalog:",
"@changesets/cli": "^2.31.0",
"@composio/anthropic": "workspace:*",
"@composio/cli-local-tools": "workspace:*",
"@composio/core": "workspace:*",
"@composio/openai": "workspace:*",
"@types/bun": "catalog:",
"@types/node": "^22.15.18",
"@typescript/native-preview": "catalog:",
"@vitest/ui": "catalog:",
"eslint": "^9.25.1",
"globals": "^16.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.5.1",
"prettier": "^3.8.4",
"publint": "catalog:",
"semver": "^7.8.4",
"tsdown": "catalog:",
"tsx": "catalog:",
"turbo": "^2.9.18",
"typescript": "catalog:",
"typescript-eslint": "^8.61.1",
"vitest": "catalog:",
"zod": "catalog:"
},
"lint-staged": {
"ts/packages/**/*.{ts,tsx}": [
"eslint --fix"
],
"ts/packages/**/*.{ts,tsx,js,jsx,json,md}": [
"prettier --write"
],
"python/**/*.py": [
"ruff check --fix --config python/config/ruff.toml",
"ruff format --config python/config/ruff.toml"
]
}
}