You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "tldraw",
  3. "private": true,
  4. "author": "@steveruizok",
  5. "description": "A tiny little drawing app.",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/tldraw/tldraw.git"
  9. },
  10. "license": "MIT",
  11. "version": "0.0.36",
  12. "workspaces": [
  13. "packages/core",
  14. "packages/tldraw",
  15. "packages/dev",
  16. "packages/www"
  17. ],
  18. "scripts": {
  19. "test": "jest",
  20. "lerna": "lerna",
  21. "start": "lerna run dev --stream --parallel",
  22. "start:www": "lerna run dev --stream --parallel & cd packages/www && yarn build",
  23. "build": "yarn build:packages && cd packages/www && yarn build",
  24. "build:packages": "cd packages/core && yarn build && cd ../tldraw && yarn build"
  25. },
  26. "devDependencies": {
  27. "@babel/plugin-syntax-import-meta": "^7.10.4",
  28. "@babel/preset-react": "^7.14.5",
  29. "@babel/preset-typescript": "^7.15.0",
  30. "@types/jest": "^26.0.24",
  31. "@types/node": "^15.0.1",
  32. "@types/react-dom": "^17.0.9",
  33. "@types/react": "^17.0.16",
  34. "@typescript-eslint/eslint-plugin": "^4.19.0",
  35. "@typescript-eslint/parser": "^4.19.0",
  36. "babel-jest": "^27.0.6",
  37. "esbuild": "^0.11.11",
  38. "jest": "^27.0.6",
  39. "lerna": "^3.15.0",
  40. "react-dom": "^17.0.2",
  41. "react": "^17.0.2",
  42. "ts-jest": "^27.0.4",
  43. "tslib": "^2.3.0",
  44. "typescript": "^4.3.5"
  45. },
  46. "dependencies": {},
  47. "prettier": {
  48. "trailingComma": "es5",
  49. "singleQuote": true,
  50. "semi": false,
  51. "printWidth": 100
  52. },
  53. "jest": {
  54. "preset": "ts-jest",
  55. "transform": {
  56. "^.+\\.(tsx|jsx|ts|js)?$": "ts-jest"
  57. },
  58. "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
  59. "moduleFileExtensions": [
  60. "ts",
  61. "tsx",
  62. "js",
  63. "jsx",
  64. "json",
  65. "node"
  66. ],
  67. "globals": {
  68. "ts-jest": {
  69. "tsConfig": "tsconfig.json",
  70. "babelConfig": {
  71. "presets": [
  72. [
  73. "@babel/preset-react"
  74. ],
  75. "@babel/preset-typescript"
  76. ],
  77. "plugins": [
  78. "@babel/plugin-syntax-import-meta"
  79. ]
  80. }
  81. }
  82. },
  83. "testEnvironment": "jsdom",
  84. "modulePathIgnorePatterns": [
  85. "<rootDir>/packages/core/build/",
  86. "<rootDir>/packages/tldraw/build/"
  87. ],
  88. "moduleNameMapper": {
  89. "@tldraw/core": "<rootDir>/packages/core/src",
  90. "@tldraw/tldraw": "<rootDir>/packages/tldraw/src"
  91. }
  92. }
  93. }