tldraw/package.json
2021-09-05 11:40:19 +01:00

117 lines
No EOL
3.2 KiB
JSON

{
"name": "tldraw",
"private": true,
"author": "@steveruizok",
"description": "A tiny little drawing app.",
"repository": {
"type": "git",
"url": "git+https://github.com/tldraw/tldraw.git"
},
"license": "MIT",
"version": "0.0.36",
"workspaces": [
"packages/core",
"packages/tldraw",
"packages/dev",
"packages/www"
],
"scripts": {
"test": "jest",
"test:watch": "jest --watchAll",
"lerna": "lerna",
"start": "lerna run start:pre && lerna run start --stream --parallel",
"start:www": "yarn build:packages && lerna run start --parallel & cd packages/www && yarn dev",
"build": "yarn build:packages && cd packages/www && yarn build",
"build:packages": "cd packages/core && yarn build && cd ../tldraw && yarn build",
"publish:patch": "yarn build:packages && lerna publish patch --contents dist",
"docs": "lerna run docs --stream",
"docs:watch": "lerna run docs:watch --stream"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@types/jest": "^27.0.1",
"@types/node": "^15.0.1",
"@types/react": "^17.0.19",
"@types/react-dom": "^17.0.9",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"babel-jest": "^27.1.0",
"eslint": "^7.32.0",
"fake-indexeddb": "^3.1.3",
"jest": "^27.1.0",
"lerna": "^3.15.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ts-jest": "^27.0.5",
"tslib": "^2.3.0",
"typedoc": "^0.21.9",
"typescript": "^4.4.2"
},
"dependencies": {},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"semi": false,
"printWidth": 100
},
"jest": {
"preset": "ts-jest",
"setupFilesAfterEnv": [
"<rootDir>/setupTests.ts"
],
"transform": {
"^.+\\.(tsx|jsx|ts|js|mjs)?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json",
"babelConfig": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": true
}
}
],
[
"@babel/preset-react"
],
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-syntax-import-meta"
]
}
}
},
"testEnvironment": "jsdom",
"modulePathIgnorePatterns": [
"<rootDir>/packages/core/dist/",
"<rootDir>/packages/tldraw/dist/",
"<rootDir>/packages/tldraw/test-utils/"
],
"moduleNameMapper": {
"@tldraw/core": "<rootDir>/packages/core/src",
"@tldraw/tldraw": "<rootDir>/packages/tldraw/src",
"\\~(.*)": "<rootDir>/packages/tldraw/src/$1",
"\\+(.*)": "<rootDir>/packages/core/src/$1"
}
}
}