Skip to content

Commit db90cff

Browse files
committed
database: decaffeinate phase 1
1 parent 44ad667 commit db90cff

File tree

11 files changed

+1302
-33
lines changed

11 files changed

+1302
-33
lines changed

src/.claude/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"Bash(pnpm i18n:compile:*)",
3939
"Bash(pnpm i18n:download:*)",
4040
"Bash(pnpm i18n:extract:*)",
41-
"Bash(pnpm i18n:upload:*)",
4241
"Bash(pnpm i18n:update:*)",
42+
"Bash(pnpm i18n:upload:*)",
4343
"Bash(pnpm info:*)",
4444
"Bash(pnpm list:*)",
4545
"Bash(pnpm remove:*)",
@@ -48,14 +48,15 @@
4848
"Bash(pnpm ts-build:*)",
4949
"Bash(pnpm tsc:*)",
5050
"Bash(pnpm update:*)",
51+
"Bash(pnpm version-check:*)",
5152
"Bash(pnpm view:*)",
5253
"Bash(pnpm why:*)",
5354
"Bash(prettier -w:*)",
5455
"Bash(psql:*)",
5556
"Bash(python3:*)",
56-
"Bash(uv:*)",
5757
"Bash(timeout:*)",
5858
"Bash(uv sync:*)",
59+
"Bash(uv:*)",
5960
"WebFetch",
6061
"WebSearch",
6162
"mcp__cocalc__*",

src/AGENTS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ This file provides guidance to Claude Code (claude.ai/code) and also Gemini CLI
4444
- `cd packages/[package] && pnpm test` - Run tests for a specific package
4545
- **IMPORTANT**: When modifying packages like `util` that other packages depend on, you must run `pnpm build` in the modified package before typechecking dependent packages
4646

47+
### Dependency Management
48+
49+
**Package versions must be uniform across all CoCalc packages in the monorepo.**
50+
51+
When updating npm packages:
52+
53+
- **ALWAYS update associated `@types/[name]` packages** when updating an npm package `[name]` if `@types/[name]` is installed
54+
- **Check all packages in the workspace** that depend on the package being updated
55+
- **Ensure version consistency** across all packages - the same package must use the same version everywhere
56+
- Run `pnpm version-check` from the root directory (`cocalc/src/`) to verify version consistency
57+
- Run `pnpm install` after updating dependencies in any package
58+
- Use `pnpm list [package]` to verify the installed version across the workspace
59+
- Example: When updating `pg` from `^8.7.1` to `^8.16.3`, also update `@types/pg` from `^8.6.1` to `^8.16.0` in **all packages** that use them
60+
4761
### Development
4862

4963
- **IMPORTANT**: Always run `prettier -w [filename]` immediately after editing any .ts, .tsx, .md, or .json file to ensure consistent styling

0 commit comments

Comments
 (0)