2021-11-18 13:09:18 +00:00
|
|
|
{
|
2022-01-07 08:45:09 +00:00
|
|
|
"version": "1.4.2",
|
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/**/*"
|
|
|
|
],
|
|
|
|
"main": "./dist/cjs/index.js",
|
|
|
|
"module": "./dist/esm/index.js",
|
|
|
|
"types": "./dist/types/index.d.ts",
|
|
|
|
"scripts": {
|
|
|
|
"start:core": "yarn start",
|
|
|
|
"start:packages": "yarn start",
|
|
|
|
"start": "node scripts/dev & yarn types:dev",
|
|
|
|
"build:core": "yarn build",
|
|
|
|
"build:packages": "yarn build",
|
2021-11-18 14:05:44 +00:00
|
|
|
"build": "node scripts/build && yarn types:build",
|
2021-11-18 13:09:18 +00:00
|
|
|
"types:dev": "tsc -w --p tsconfig.build.json",
|
|
|
|
"types:build": "tsc -p tsconfig.build.json && tsconfig-replace-paths -p tsconfig.build.json",
|
|
|
|
"lint": "eslint src/ --ext .ts,.tsx",
|
|
|
|
"clean": "rm -rf dist",
|
|
|
|
"test": "jest",
|
|
|
|
"test:ci": "jest --ci --runInBand --updateSnapshot",
|
|
|
|
"test:watch": "jest --watchAll"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-01-07 08:45:09 +00:00
|
|
|
"@tldraw/intersect": "^1.4.2",
|
|
|
|
"@tldraw/vec": "^1.4.2",
|
2021-12-27 12:50:18 +00:00
|
|
|
"@use-gesture/react": "^10.2.4",
|
2021-11-28 10:05:40 +00:00
|
|
|
"mobx-react-lite": "^3.2.2"
|
2021-11-18 13:09:18 +00:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"react": ">=16.8",
|
|
|
|
"react-dom": "^16.8 || ^17.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@swc-node/jest": "^1.3.3",
|
|
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
|
|
"@testing-library/react": "^12.0.0",
|
|
|
|
"@types/jest": "^27.0.2",
|
|
|
|
"@types/node": "^16.11.6",
|
|
|
|
"@types/react": "^17.0.33",
|
2021-11-19 15:02:04 +00:00
|
|
|
"@types/react-dom": "^17.0.10",
|
2021-11-28 10:05:40 +00:00
|
|
|
"mobx": "^6.3.8",
|
|
|
|
"tsconfig-replace-paths": "^0.0.11"
|
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"
|
2021-12-10 16:08:17 +00:00
|
|
|
}
|