2021-11-18 13:09:18 +00:00
|
|
|
{
|
2022-07-23 14:09:37 +00:00
|
|
|
"version": "1.15.0",
|
2021-11-18 13:09:18 +00:00
|
|
|
"name": "@tldraw/core",
|
|
|
|
"description": "The tldraw core renderer and utilities.",
|
|
|
|
"author": "@steveruizok",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/tldraw/tldraw.git"
|
|
|
|
},
|
|
|
|
"license": "MIT",
|
|
|
|
"keywords": [
|
|
|
|
"react",
|
|
|
|
"canvas",
|
|
|
|
"zoom",
|
|
|
|
"drawing",
|
|
|
|
"whiteboard"
|
|
|
|
],
|
|
|
|
"files": [
|
|
|
|
"dist/**/*"
|
|
|
|
],
|
2022-02-08 11:05:56 +00:00
|
|
|
"main": "./dist/index.js",
|
|
|
|
"module": "./dist/index.mjs",
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
"source": "./dist/index.ts",
|
2021-11-18 13:09:18 +00:00
|
|
|
"scripts": {
|
2022-08-11 06:08:32 +00:00
|
|
|
"dev": "yarn lfg -d",
|
2022-06-16 13:23:27 +00:00
|
|
|
"build": "yarn lfg",
|
2021-11-18 13:09:18 +00:00
|
|
|
"test": "jest",
|
|
|
|
"test:ci": "jest --ci --runInBand --updateSnapshot",
|
2022-08-11 06:08:32 +00:00
|
|
|
"test:watch": "jest --watchAll",
|
|
|
|
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
|
|
|
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-02-15 12:41:35 +00:00
|
|
|
"@tldraw/intersect": "^1.7.1",
|
2022-06-21 07:56:49 +00:00
|
|
|
"@tldraw/vec": "^1.7.1",
|
2022-05-18 12:50:06 +00:00
|
|
|
"@use-gesture/react": "^10.2.14",
|
2022-02-03 10:57:03 +00:00
|
|
|
"mobx-react-lite": "^3.2.3",
|
2022-06-01 14:21:36 +00:00
|
|
|
"perfect-freehand": "^1.1.0",
|
2022-02-03 10:57:03 +00:00
|
|
|
"resize-observer-polyfill": "^1.5.1"
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"react": ">=16.8",
|
2022-06-09 14:33:35 +00:00
|
|
|
"react-dom": ">=16.8"
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-02-03 10:57:03 +00:00
|
|
|
"@swc-node/jest": "^1.4.3",
|
2022-07-07 10:59:47 +00:00
|
|
|
"@testing-library/jest-dom": "^5.16.4",
|
|
|
|
"@testing-library/react": "^13.3.0",
|
2022-05-18 11:45:04 +00:00
|
|
|
"@tldraw/intersect": "*",
|
|
|
|
"@tldraw/vec": "*",
|
2022-08-09 23:18:59 +00:00
|
|
|
"@types/react": "^18.0.17",
|
|
|
|
"@types/react-dom": "^18.0.6",
|
2022-06-16 13:23:27 +00:00
|
|
|
"@tldraw/lfg": "latest",
|
2021-11-28 10:05:40 +00:00
|
|
|
"mobx": "^6.3.8",
|
2022-08-09 23:18:59 +00:00
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "^18.2.0"
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/../../setupTests.ts"
|
|
|
|
],
|
|
|
|
"transform": {
|
2021-11-28 10:05:40 +00:00
|
|
|
"^.+\\.(tsx|jsx|ts|js|mjs)?$": [
|
|
|
|
"@swc-node/jest",
|
|
|
|
{
|
|
|
|
"dynamicImport": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"emitDecoratorMetadata": true
|
|
|
|
}
|
|
|
|
]
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js",
|
|
|
|
"jsx",
|
|
|
|
"json",
|
|
|
|
"node"
|
|
|
|
],
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"modulePathIgnorePatterns": [
|
|
|
|
"<rootDir>/dist/",
|
|
|
|
"<rootDir>/src/test/"
|
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"@tldraw/core": "<rootDir>/src",
|
|
|
|
"\\~(.*)": "<rootDir>/src/$1"
|
|
|
|
}
|
2021-11-28 10:18:55 +00:00
|
|
|
},
|
2022-01-07 08:55:16 +00:00
|
|
|
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296"
|
2022-07-28 07:19:53 +00:00
|
|
|
}
|