90 lines
2.3 KiB
JSON
90 lines
2.3 KiB
JSON
{
|
|
"name": "@tldraw/tldraw",
|
|
"description": "A tiny little drawing editor.",
|
|
"version": "2.0.0-alpha.12",
|
|
"packageManager": "yarn@3.5.0",
|
|
"author": {
|
|
"name": "tldraw GB Ltd.",
|
|
"email": "hello@tldraw.com"
|
|
},
|
|
"homepage": "https://tldraw.dev",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tldraw/tldraw"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/tldraw/tldraw/issues"
|
|
},
|
|
"keywords": [
|
|
"tldraw",
|
|
"drawing",
|
|
"app",
|
|
"development",
|
|
"whiteboard",
|
|
"canvas",
|
|
"infinite"
|
|
],
|
|
"/* NOTE */": "These `main` and `types` fields are rewritten by the build script. They are not the actual values we publish",
|
|
"main": "./src/index.ts",
|
|
"types": "./.tsbuild/index.d.ts",
|
|
"scripts": {
|
|
"test": "lazy inherit",
|
|
"test-coverage": "lazy inherit",
|
|
"dev": "chokidar '../{editor,ui}/*.css' -c 'node ./scripts/copy-css-files.mjs' --initial",
|
|
"prebuild": "node ./scripts/copy-css-files.mjs",
|
|
"build": "yarn run -T tsx ../../scripts/build-package.ts",
|
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
|
"postpack": "../../scripts/postpack.sh",
|
|
"pack-tarball": "yarn pack",
|
|
"lint": "yarn run -T tsx ../../scripts/lint.ts"
|
|
},
|
|
"files": [
|
|
"editor.css",
|
|
"ui.css"
|
|
],
|
|
"dependencies": {
|
|
"@tldraw/editor": "workspace:*",
|
|
"@tldraw/polyfills": "workspace:*",
|
|
"@tldraw/ui": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18",
|
|
"react-dom": "^18"
|
|
},
|
|
"devDependencies": {
|
|
"@peculiar/webcrypto": "^1.4.0",
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
"@testing-library/react": "^14.0.0",
|
|
"chokidar-cli": "^3.0.0",
|
|
"jest-canvas-mock": "^2.4.0",
|
|
"jest-environment-jsdom": "^28.1.2",
|
|
"lazyrepo": "0.0.0-alpha.27",
|
|
"resize-observer-polyfill": "^1.5.1"
|
|
},
|
|
"jest": {
|
|
"preset": "config/jest/node",
|
|
"testEnvironment": "jsdom",
|
|
"fakeTimers": {
|
|
"enableGlobally": true
|
|
},
|
|
"testPathIgnorePatterns": [
|
|
"^.+\\.*.css$"
|
|
],
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(nanoid|escape-string-regexp)/)"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^~(.*)": "<rootDir>/src/$1",
|
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
|
|
},
|
|
"setupFiles": [
|
|
"raf/polyfill",
|
|
"<rootDir>/setupTests.js"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"../../config/setupJest.ts"
|
|
]
|
|
}
|
|
}
|