Files
composiohq__composio/package.json
T
Alberto Schiabel 07160d14fa feat(toolchain): introduce mise.toml as single source of truth (#3492)
## Summary

This PR starts Phase 1 of PLEN-1368 by adding `mise.toml` as the
repo-owned source for the primary toolchain versions:

- Node `20.20.2`
- Bun `1.3.10`
- Deno `2.6.7`
- Python `3.12`
- uv `0.8.19`

It also keeps pnpm corepack-driven through
`package.json#packageManager`, adds `devEngines` for Node/pnpm
visibility, documents the new `mise install && corepack enable && pnpm
install` bootstrap path, ignores `.mise.local.toml`, and fixes stale
release-doc prerequisites.

## Why

The repo already has real toolchain drift, not just duplicated version
strings. The internal release docs had stale Node/Bun/pnpm versions,
Deno is repeated across workflows, Dockerfiles, docs, and e2e helpers,
and Python local setup still has a separate `3.11` venv path while the
repo pins `3.12`.

A composite-action cleanup would improve CI, but it would not solve
local development. `mise.toml` gives us one file that declares the
versions and lets contributors install or switch them with one command.
That is the main value proposition here: make the repo declare its own
toolchain, then let CI consume the same declaration in the next phase.

## Rollout

This is deliberately additive. It does not remove `.nvmrc`,
`.bun-version`, `.python-version`, or `.dvmrc`, and it does not change
CI behavior yet. Contributors who do not use mise can keep working as
before; contributors who do use mise get managed Node/Bun/Deno/Python/uv
immediately.

Phase 2 can migrate the existing composite actions to
`jdx/mise-action@v4`. Phase 3 can remove the legacy version files and
add the lockfile once the transition is complete.

## Out of Scope

- Migrating CI to `jdx/mise-action@v4`
- Removing legacy version files
- Adding `mise.lock`
- Updating nested TS package/example `packageManager` fields that still
say `pnpm@10.28.0`; that is pre-existing metadata drift and should be
handled separately to avoid broadening Phase 1

## Verification

- `git diff --check origin/next...HEAD`
- `mise install && mise current`
- `pnpm --version` -> `10.28.2`
- `pnpm dlx prettier@3.8.1 --check package.json`

Refs: PLEN-1368
2026-06-04 23:50:59 -07:00

105 lines
3.9 KiB
JSON

{
"name": "composio",
"version": "0.10.0-alpha.1",
"private": true,
"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/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 && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples",
"test:install-sh": "bash test/install-sh-release-resolution.test.sh",
"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": "pnpm run build:packages && changeset publish",
"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"
},
"packageManager": "pnpm@10.28.2",
"devEngines": {
"runtime": {
"name": "node",
"version": "20.20.2",
"onFail": "warn"
},
"packageManager": {
"name": "pnpm",
"version": "10.28.2",
"onFail": "warn"
}
},
"devDependencies": {
"@arethetypeswrong/cli": "catalog:",
"@changesets/cli": "^2.29.8",
"@composio/anthropic": "workspace:*",
"@composio/cli-local-tools": "workspace:*",
"@composio/core": "workspace:*",
"@composio/openai": "workspace:*",
"@types/bun": "^1.3.6",
"@types/node": "^22.15.18",
"@typescript/native-preview": "catalog:",
"@vitest/ui": "^3.1.4",
"eslint": "^9.25.1",
"globals": "^16.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.5.1",
"prettier": "^3.5.3",
"publint": "catalog:",
"semver": "^7.7.2",
"tsdown": "catalog:",
"tsx": "catalog:",
"turbo": "^2.8.11",
"typescript-eslint": "^8.31.0",
"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"
]
}
}