tldraw/package.json

109 lines
2.9 KiB
JSON
Raw Normal View History

2023-04-25 11:01:25 +00:00
{
"name": "@tldraw/monorepo",
"description": "A tiny little drawing app (monorepo).",
"version": "0.0.0",
"private": true,
"author": {
"name": "tldraw GB Ltd.",
"email": "hello@tldraw.com"
},
"homepage": "https://tldraw.dev",
"repository": {
"type": "git",
"url": "https://github.com/tldraw/tldraw-lite"
},
"bugs": {
"url": "https://github.com/tldraw/tldraw/issues"
},
"keywords": [
"tldraw",
"drawing",
"app",
"development",
"whiteboard",
"canvas",
"infinite"
],
"workspaces": [
"apps/*",
"packages/*",
"apps/vscode/*",
"e2e",
2023-04-25 11:01:25 +00:00
"config",
"scripts"
],
"scripts": {
"clean": "scripts/clean.sh",
"postinstall": "husky install && yarn refresh-assets",
2023-04-25 11:01:25 +00:00
"refresh-assets": "lazy refresh-assets",
"build": "lazy build",
2023-05-02 12:25:26 +00:00
"build-docs": "lazy build-docs",
"dev": "lazy run dev --filter='{,bublic/}apps/examples' --filter='{,bublic/}packages/tldraw'",
"dev-docs": "lazy run dev-docs",
"dev-vscode": "code ./apps/vscode/extension && lazy run dev --filter='{,bublic/}apps/vscode/{extension,editor}'",
"dev-webdriver": "lazy run dev-webdriver --filter='apps/webdriver'",
2023-05-02 12:25:26 +00:00
"build-types": "lazy inherit",
"build-api": "lazy build-api",
"build-package": "lazy build-package",
2023-04-25 11:01:25 +00:00
"lint": "lazy lint",
2023-05-02 15:12:34 +00:00
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
2023-04-25 11:01:25 +00:00
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts",
2023-05-02 12:25:26 +00:00
"api-check": "lazy api-check",
"test": "lazy test",
"e2e": "tsx scripts/e2e/index.ts"
2023-04-25 11:01:25 +00:00
},
"engines": {
"npm": ">=7.0.0"
},
"packageManager": "yarn@3.5.0",
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [
"prettier --write"
]
},
"dependencies": {
"@next/eslint-plugin-next": "^13.3.0",
"@types/jest": "^28.1.2",
"@types/node": "18.7.3",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"cross-env": "^7.0.3",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-local": "^1.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"inquirer": "^9.1.4",
"jest": "^28.1.1",
"lint-staged": ">=10",
"open": "^8.4.0",
"prettier": "^2.8.6",
"prettier-plugin-organize-imports": "^3.2.2",
"typescript": "^5.0.2"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.34.1",
derived presence state (#1204) This PR adds - A new `TLInstancePresence` record type, to collect info about the presence state in a particular instance of the editor. This will eventually be used to sync presence data instead of sending instance-only state across the wire. - **Record Scopes** `RecordType` now has a `scope` property which can be one of three things: - `document`: the record belongs to the document and should be synced and persisted freely. Currently: `TLDocument`, `TLPage`, `TLShape`, and `TLAsset` - `instance`: the record belongs to a single instance of the store and should not be synced at all. It should not be persisted directly in most cases, but rather compiled into a kind of 'instance configuration' to store alongside the local document data so that when reopening the associated document it can remember some of the previous instance state. Currently: `TLInstance`, `TLInstancePageState`, `TLCamera`, `TLUser`, `TLUserDocument`, `TLUserPresence` - `presence`: the record belongs to a single instance of the store and should not be persisted, but may be synced using the special presence sync protocol. Currently just `TLInstancePresence` This sets us up for the following changes, which are gonna be pretty high-impact in terms of integrating tldraw into existing systems: - Removing `instanceId` as a config option. Each instance gets a randomly generated ID. - We'd replace it with an `instanceConfig` option that has stuff like selectedIds, camera positions, and so on. Then it's up to library users to get and reinstate the instance config at persistence boundaries. - Removing `userId` as config option, and removing the `TLUser` type altogether. - We might need to revisit when doing auth-enabled features like locking shapes, but I suspect that will be separate.
2023-04-27 18:03:19 +00:00
"@swc/core": "^1.3.55",
"@swc/jest": "^0.2.26",
2023-04-25 11:01:25 +00:00
"@types/glob": "^8.1.0",
"auto": "^10.44.0",
"fs-extra": "^11.1.0",
"json5": "^2.2.3",
2023-05-02 12:25:26 +00:00
"lazyrepo": "0.0.0-alpha.26",
2023-04-25 11:01:25 +00:00
"rimraf": "^4.4.0",
"tree-kill": "^1.2.2",
2023-04-25 11:01:25 +00:00
"tsx": "^3.12.2",
"vercel": "^28.16.15",
"yargs": "^17.7.2"
2023-04-25 11:01:25 +00:00
},
"resolutions": {
"@microsoft/api-extractor@^7.34.1": "patch:@microsoft/api-extractor@npm%3A7.34.1#./.yarn/patches/@microsoft-api-extractor-npm-7.34.1-af268a32f8.patch"
}
}