-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathpackage.json
More file actions
45 lines (45 loc) · 2.51 KB
/
package.json
File metadata and controls
45 lines (45 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"name": "mirascope-monorepo",
"version": "2.3.0",
"private": true,
"scripts": {
"cloud:dev": "cd cloud && bun i && bun run dev",
"typecheck": "bun run typecheck:typescript && bun run typecheck:python && bun run typecheck:cloud",
"typecheck:python": "cd python && uv run pyright .",
"typecheck:typescript": "bun run --cwd typescript typecheck",
"typecheck:cloud": "bun run --cwd cloud typecheck",
"test:python": "cd python && uv run pytest tests/",
"test:cloud": "cd cloud && bun run test",
"coverage:python": "cd python && uv run pytest --cov --cov-config=.coveragerc --cov-report=term-missing",
"codespell": "uvx codespell --config .codespellrc",
"ci": "bun run lint && bun run coverage:python",
"lint": "bun run codespell && bun run lint:python && bun run lint:typescript && bun run lint:cloud",
"lint:python": "cd python && uv sync --all-extras --dev && uv run ruff check . && uv run pyright .",
"lint:typescript": "cd typescript && bun i && bun run lint",
"lint:cloud": "cd cloud && bun i && bun run lint",
"fix": "bun run fix:python && bun run fix:typescript && bun run fix:cloud",
"fix:python": "cd python && bun run scripts/regenerate_examples.ts && uv run ruff check --fix . && uv run ruff format .",
"generate:python-sdk:gen-ai-types": "cd python && uv run datamodel-codegen --input schemas/gen-ai --output mirascope/ops/_internal/instrumentation/llm/gen_ai_types",
"fix:typescript": "cd typescript && bun i && bun run fix",
"fix:cloud": "cd cloud && bun i && bun run fix",
"generate:sdk": "cd cloud && bun run generate:openapi > ../fern/openapi.json && cd ../fern && npx fern-api generate --group python-sdk --local --force && npx fern-api generate --group typescript-sdk --local --force && bun run fix:python && bun run fix:typescript",
"generate:python-sdk": "cd cloud && bun run generate:openapi > ../fern/openapi.json && cd ../fern && npx fern-api generate --group python-sdk --local --force && bun run fix:python",
"generate:typescript-sdk": "cd cloud && bun run generate:openapi > ../fern/openapi.json && cd ../fern && npx fern-api generate --group typescript-sdk --local --force && bun run fix:typescript",
"prepare": "husky"
},
"lint-staged": {
"cloud/**/*.{ts,tsx}": [
"bun cloud/lint-staged.ts"
],
"typescript/**/*.{ts,tsx}": [
"bun typescript/lint-staged.ts"
],
"python/**/*.py": [
"bun python/lint-staged.ts"
]
},
"devDependencies": {
"husky": "^9.1.7",
"lint-staged": "^16.1.2"
}
}