93 lines
2.3 KiB
JSON
93 lines
2.3 KiB
JSON
{
|
|
"version": "1.1.11",
|
|
"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",
|
|
"build": "node scripts/build && yarn types:build",
|
|
"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": {
|
|
"@tldraw/intersect": "^1.1.11",
|
|
"@tldraw/vec": "^1.1.11",
|
|
"@use-gesture/react": "^10.1.3",
|
|
"mobx-react-lite": "^3.2.2"
|
|
},
|
|
"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",
|
|
"@types/react-dom": "^17.0.10",
|
|
"mobx": "^6.3.8",
|
|
"tsconfig-replace-paths": "^0.0.11"
|
|
},
|
|
"jest": {
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/../../setupTests.ts"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(tsx|jsx|ts|js|mjs)?$": [
|
|
"@swc-node/jest",
|
|
{
|
|
"dynamicImport": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|