/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
package.json
213 строк
7 KB
Mime Čuvalo
chore: cut over to TypeScript 7 (#9752)
10 авг 2026, 18:34
Не верифицирован
10 авг 2026, 18:34
6ee2eda
Код
Авторство
О чём код?
{ "name": "@tldraw/monorepo", "description": "tldraw infinite canvas SDK (monorepo).", "version": "0.0.0", "private": true, "author": { "name": "tldraw Inc.", "email": "hello@tldraw.com" }, "homepage": "https://tldraw.dev", "repository": { "type": "git", "url": "https://github.com/tldraw/tldraw" }, "bugs": { "url": "https://github.com/tldraw/tldraw/issues" }, "keywords": [ "tldraw", "sdk", "drawing", "app", "development", "whiteboard", "canvas", "infinite" ], "workspaces": [ "packages/*", "apps/*", "apps/vscode/*", "apps/dotcom/*", "internal/*", "templates/*" ], "scripts": { "aws-login": "aws sso login --sso-session=tldraw", "clean": "internal/scripts/clean.sh", "extract-draft-changelog": "tsx internal/scripts/extract-draft-changelog.tsx", "postinstall": "husky install && yarn refresh-assets", "refresh-assets": "lazy refresh-assets", "dev": "LAZYREPO_PRETTY_OUTPUT=0 lazy run dev --filter='apps/examples' --filter='packages/tldraw' --filter='apps/bemo-worker' --filter='apps/dotcom/image-resize-worker'", "dev-vscode": "code ./apps/vscode/extension && lazy run dev --filter='apps/vscode/{extension,editor}'", "dev-app": "process-compose -f apps/dotcom/process-compose.yaml up", "dev-app:clean": "docker compose -f apps/dotcom/zero-cache/docker/docker-compose.yml down --volumes && rm -f /tmp/tldraw-dotcom-zero-dev.db /tmp/tldraw-dotcom-zero-dev.db-shm /tmp/tldraw-dotcom-zero-dev.db-wal && rm -rf apps/dotcom/sync-worker/.wrangler/state-dev apps/dotcom/zero-cache/.schema.js", "dev-app:doctor": "process-compose -f apps/dotcom/process-compose.yaml process list", "dev-docs": "LAZYREPO_PRETTY_OUTPUT=0 lazy run dev --filter='apps/docs'", "dev-huppy": "LAZYREPO_PRETTY_OUTPUT=0 lazy run dev --filter 'internal/huppy'", "dev-template": "./internal/scripts/dev-template.sh", "build": "lazy build", "build-app": "lazy run build --filter 'apps/dotcom/client'", "build-docs": "lazy run build --filter 'apps/docs'", "build-types": "lazy inherit", "build-api": "lazy build-api", "build-i18n": "lazy build-i18n", "build-package": "lazy run build --filter 'packages/*'", "preview-app": "yarn build-app && VITE_PREVIEW=1 yarn dev-app", "preview-examples": "lazy run build --filter='apps/examples' && cd apps/examples && yarn preview", "lint": "tsx internal/scripts/lint.ts", "format": "tsx internal/scripts/lint.ts --fix", "format-current": "tsx internal/scripts/lint.ts --fix --current", "lint-current": "tsx internal/scripts/lint.ts --current", "typecheck": "yarn refresh-assets && tsx internal/scripts/typecheck.ts", "profile-typescript": "tsx internal/scripts/profile-typescript.ts", "profile-tsserver": "tsx internal/scripts/profile-tsserver.ts", "check-packages": "tsx internal/scripts/check-packages.ts", "check-circular-deps": "tsx internal/scripts/check-circular-deps.ts", "update-pr-template": "tsx internal/scripts/update-pr-template.ts", "generate-test-licenses": "tsx internal/scripts/generate-test-licenses.ts", "api-check": "lazy api-check", "test-ci": "yarn vitest run", "test": "yarn vitest", "test-coverage": "yarn vitest run --coverage && open-cli coverage/index.html", "e2e": "lazy e2e --filter='apps/examples'", "e2e-dotcom": "yarn workspace dotcom e2e", "e2e-dotcom-smoke": "yarn workspace dotcom e2e-smoke", "e2e-dotcom-all": "yarn workspace dotcom e2e-all", "e2e-dotcom-x10": "yarn workspace dotcom e2e-x10", "e2e-dotcom-smoke-x10": "yarn workspace dotcom e2e-smoke-x10", "e2e-dotcom-all-x10": "yarn workspace dotcom e2e-all-x10", "i18n-check": "i18n-check", "i18n-upload-strings": "tsx internal/scripts/i18n-upload-strings.ts", "i18n-download-strings": "tsx internal/scripts/i18n-download-strings.ts", "i18n-fix-strings": "tsx internal/scripts/i18n-fix-strings.ts", "add-framer-rewrites": "tsx apps/docs/scripts/add-framer-rewrites.ts" }, "engines": { "npm": ">=7.0.0", "node": ">=22.12.0" }, "packageManager": "yarn@4.17.1", "lint-staged": { "*.{js,jsx,ts,tsx,cjs,mjs}": [ "oxfmt --no-error-on-unmatched-pattern", "oxlint --no-error-on-unmatched-pattern" ], "*.{css,md,mdx,html,yml,yaml}": [ "oxfmt --no-error-on-unmatched-pattern" ] }, "devDependencies": { "@lingual/i18n-check": "^0.5.5", "@microsoft/api-extractor": "^7.55.2", "@swc/core": "^1.15.18", "@tldraw/scripts": "workspace:*", "@types/adm-zip": "^0.5.7", "@types/aws-lambda": "8.10.148", "@types/glob": "^8.1.0", "@types/node": "^22.15.31", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", "@types/semver": "^7.5.8", "@vitest/coverage-v8": "^4.1.7", "@vitest/ui": "^4.1.7", "adm-zip": "^0.5.16", "docx": "^9.5.1", "fs-extra": "^11.3.0", "husky": "^8.0.3", "jsdom": "^29.1.1", "json5": "^2.2.3", "lazyrepo": "0.0.0-alpha.27", "license-report": "^6.7.1", "lint-staged": "^15.4.3", "open-cli": "^8.0.0", "oxfmt": "^0.41.0", "oxlint": "^1.66.0", "oxlint-tsgolint": "^0.23.0", "rimraf": "^4.4.1", "tsx": "^4.19.2", "typescript": "^7.0.2", "vercel": "^52.0.0", "vite-plugin-circular-dependency": "^0.5.0", "vitest": "^4.1.7", "vitest-canvas-mock": "^1.1.3" }, "// resolutions.canvas": [ "our examples app depenends on pdf.js which pulls in canvas as an optional dependency.", "it slows down installs quite a bit though, so we replace it with an empty package." ], "// dependenciesMeta": [ "enableScripts is false in .yarnrc.yml, so dependency build/install scripts don't run", "unless allowlisted here with built: true. Add an entry when introducing a native or", "binary-downloading dependency — Yarn silently skips unlisted scripts, so a missing entry", "surfaces as a runtime/build failure, not an install error. See AGENTS.md.", "", "workerd stays built: false: its postinstall runs the native binary to self-check it, which", "fails on CI images without GLIBC 2.35+ (e.g. Vercel, which builds the docs site). Skipping", "the build script doesn't affect wrangler at dev time — wrangler still invokes the platform", "binary normally on developer machines." ], "dependenciesMeta": { "@rocicorp/zero-sqlite3": { "built": true }, "@sentry/cli": { "built": true }, "@swc/core": { "built": true }, "@vscode/vsce-sign": { "built": true }, "better-sqlite3": { "built": true }, "edgedriver": { "built": true }, "esbuild": { "built": true }, "geckodriver": { "built": true }, "keytar": { "built": true }, "sharp": { "built": true }, "sqlite3": { "built": true }, "workerd": { "built": false } }, "resolutions": { "domino@^2.1.6": "patch:domino@npm%3A2.1.6#./.yarn/patches/domino-npm-2.1.6-b0dc3de857.patch", "canvas": "npm:empty-npm-package@1.0.0", "@microsoft/tsdoc@npm:~0.15.1": "patch:@microsoft/tsdoc@npm%3A0.15.1#~/.yarn/patches/@microsoft-tsdoc-npm-0.15.1-e24295d9bd.patch", "@microsoft/tsdoc@npm:0.15.1": "patch:@microsoft/tsdoc@npm%3A0.15.1#~/.yarn/patches/@microsoft-tsdoc-npm-0.15.1-e24295d9bd.patch", "@types/node": "^22.15.31", "ws": "8.21.0", "js-cookie": "3.0.7", "postcss": "8.5.10", "react-router": "6.30.4", "@remix-run/router": "1.23.2", "@octokit/plugin-paginate-rest@11.3.1": "11.4.1", "undici@7.24.4": "7.28.0", "ip-address@10.1.0": "10.2.0" }, "dependencies": { "@sentry/cli": "^2.41.1", "@yarnpkg/types": "^4.0.0", "cross-env": "^7.0.3", "esbuild": "^0.28.0", "mime": "^4.0.6", "purgecss": "^5.0.0", "svgo": "^3.3.3" } }