2021-05-09 12:03:39 +00:00
|
|
|
{
|
2021-08-10 16:12:55 +00:00
|
|
|
"name": "tldraw",
|
|
|
|
"private": true,
|
|
|
|
"author": "@steveruizok",
|
|
|
|
"description": "A tiny little drawing app.",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/tldraw/tldraw.git"
|
2021-06-21 21:35:28 +00:00
|
|
|
},
|
2021-08-10 16:12:55 +00:00
|
|
|
"license": "MIT",
|
2021-09-05 11:19:08 +00:00
|
|
|
"version": "0.0.74",
|
2021-08-10 16:12:55 +00:00
|
|
|
"workspaces": [
|
2021-08-10 17:19:30 +00:00
|
|
|
"packages/core",
|
|
|
|
"packages/tldraw",
|
2021-09-04 11:29:43 +00:00
|
|
|
"packages/dev",
|
2021-09-12 12:21:44 +00:00
|
|
|
"packages/www",
|
|
|
|
"packages/vec",
|
|
|
|
"packages/intersect"
|
2021-08-10 16:12:55 +00:00
|
|
|
],
|
2021-08-10 17:19:30 +00:00
|
|
|
"scripts": {
|
|
|
|
"test": "jest",
|
2021-09-01 12:05:14 +00:00
|
|
|
"test:watch": "jest --watchAll",
|
2021-08-10 17:19:30 +00:00
|
|
|
"lerna": "lerna",
|
2021-08-30 18:10:30 +00:00
|
|
|
"start": "lerna run start:pre && lerna run start --stream --parallel",
|
2021-08-30 07:45:10 +00:00
|
|
|
"start:www": "yarn build:packages && lerna run start --parallel & cd packages/www && yarn dev",
|
2021-09-04 09:14:47 +00:00
|
|
|
"build": "yarn build:packages && cd packages/www && yarn build",
|
2021-09-12 12:21:44 +00:00
|
|
|
"build:packages": "cd packages/vec && yarn build && cd ../intersect && yarn build && cd ../core && yarn build && cd ../tldraw && yarn build",
|
2021-09-05 14:23:37 +00:00
|
|
|
"publish:patch": "yarn build:packages && lerna publish patch",
|
2021-09-12 13:00:31 +00:00
|
|
|
"docs": "lerna run docs",
|
|
|
|
"docs:watch": "lerna run docs:watch"
|
2021-08-10 17:19:30 +00:00
|
|
|
},
|
2021-08-10 16:12:55 +00:00
|
|
|
"devDependencies": {
|
2021-10-22 11:41:24 +00:00
|
|
|
"@swc-node/jest": "^1.3.3",
|
2021-08-14 15:46:21 +00:00
|
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
|
|
"@testing-library/react": "^12.0.0",
|
2021-08-29 13:33:43 +00:00
|
|
|
"@types/jest": "^27.0.1",
|
2021-08-10 16:12:55 +00:00
|
|
|
"@types/node": "^15.0.1",
|
2021-09-19 19:45:50 +00:00
|
|
|
"@types/react": "^16.9.55",
|
|
|
|
"@types/react-dom": "^16.9.9",
|
2021-08-10 16:12:55 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
|
|
|
"@typescript-eslint/parser": "^4.19.0",
|
2021-08-31 13:28:51 +00:00
|
|
|
"eslint": "^7.32.0",
|
2021-08-29 13:33:43 +00:00
|
|
|
"fake-indexeddb": "^3.1.3",
|
2021-09-09 12:32:08 +00:00
|
|
|
"init-package-json": "^2.0.4",
|
2021-08-29 13:33:43 +00:00
|
|
|
"jest": "^27.1.0",
|
2021-09-09 12:32:08 +00:00
|
|
|
"lerna": "^3.22.1",
|
2021-09-08 16:18:43 +00:00
|
|
|
"resize-observer-polyfill": "^1.5.1",
|
2021-08-10 16:12:55 +00:00
|
|
|
"tslib": "^2.3.0",
|
2021-09-12 13:00:31 +00:00
|
|
|
"typedoc": "^0.22.3",
|
2021-08-29 13:33:43 +00:00
|
|
|
"typescript": "^4.4.2"
|
2021-05-09 12:03:39 +00:00
|
|
|
},
|
2021-08-10 17:19:30 +00:00
|
|
|
"dependencies": {},
|
2021-06-22 18:13:16 +00:00
|
|
|
"prettier": {
|
2021-08-10 16:12:55 +00:00
|
|
|
"trailingComma": "es5",
|
2021-06-22 18:13:16 +00:00
|
|
|
"singleQuote": true,
|
2021-08-10 16:12:55 +00:00
|
|
|
"semi": false,
|
|
|
|
"printWidth": 100
|
|
|
|
},
|
|
|
|
"jest": {
|
2021-08-14 15:46:21 +00:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/setupTests.ts"
|
|
|
|
],
|
2021-08-10 16:12:55 +00:00
|
|
|
"transform": {
|
2021-10-22 11:41:24 +00:00
|
|
|
"^.+\\.(tsx|jsx|ts|js|mjs)?$": "@swc-node/jest"
|
2021-08-10 16:12:55 +00:00
|
|
|
},
|
|
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js",
|
|
|
|
"jsx",
|
|
|
|
"json",
|
|
|
|
"node"
|
|
|
|
],
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"modulePathIgnorePatterns": [
|
2021-09-12 12:21:44 +00:00
|
|
|
"<rootDir>/packages/vec/dist/",
|
|
|
|
"<rootDir>/packages/intersect/dist/",
|
2021-08-31 21:43:04 +00:00
|
|
|
"<rootDir>/packages/core/dist/",
|
|
|
|
"<rootDir>/packages/tldraw/dist/",
|
2021-08-14 15:46:21 +00:00
|
|
|
"<rootDir>/packages/tldraw/test-utils/"
|
2021-08-10 16:12:55 +00:00
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
2021-09-12 12:21:44 +00:00
|
|
|
"@tldraw/vec": "<rootDir>/packages/vec/src",
|
|
|
|
"@tldraw/intersect": "<rootDir>/packages/intersect/src",
|
2021-08-10 16:12:55 +00:00
|
|
|
"@tldraw/core": "<rootDir>/packages/core/src",
|
2021-08-13 10:49:35 +00:00
|
|
|
"@tldraw/tldraw": "<rootDir>/packages/tldraw/src",
|
|
|
|
"\\~(.*)": "<rootDir>/packages/tldraw/src/$1",
|
|
|
|
"\\+(.*)": "<rootDir>/packages/core/src/$1"
|
2021-08-10 16:12:55 +00:00
|
|
|
}
|
2021-05-09 12:03:39 +00:00
|
|
|
}
|
2021-09-09 12:32:08 +00:00
|
|
|
}
|