package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "name": "@flowgram.ai/free-layout-core",
  3. "version": "0.1.8",
  4. "homepage": "https://flowgram.ai/",
  5. "repository": "https://github.com/bytedance/flowgram.ai",
  6. "license": "MIT",
  7. "exports": {
  8. ".": {
  9. "types": "./dist/index.d.ts",
  10. "import": "./dist/esm/index.js",
  11. "require": "./dist/index.js"
  12. },
  13. "./typings": {
  14. "types": "./dist/typings/index.d.ts",
  15. "import": "./dist/esm/typings/index.js",
  16. "require": "./dist/typings/index.js"
  17. }
  18. },
  19. "main": "./dist/index.js",
  20. "module": "./dist/esm/index.js",
  21. "types": "./dist/index.d.ts",
  22. "typesVersions": {
  23. "*": {
  24. "typings": [
  25. "./dist/typings/index.d.ts"
  26. ]
  27. }
  28. },
  29. "files": [
  30. "dist"
  31. ],
  32. "scripts": {
  33. "build": "npm run build:fast -- --dts-resolve",
  34. "build:fast": "tsup src/index.ts src/typings --format cjs,esm --sourcemap --legacy-output",
  35. "build:watch": "npm run build:fast -- --dts-resolve",
  36. "clean": "rimraf dist",
  37. "test": "vitest run",
  38. "test:cov": "vitest run --coverage",
  39. "ts-check": "tsc --noEmit",
  40. "watch": "npm run build:fast -- --dts-resolve --watch --ignore-watch dist"
  41. },
  42. "dependencies": {
  43. "@flowgram.ai/core": "workspace:*",
  44. "@flowgram.ai/document": "workspace:*",
  45. "@flowgram.ai/form-core": "workspace:*",
  46. "@flowgram.ai/node": "workspace:*",
  47. "@flowgram.ai/reactive": "workspace:*",
  48. "@flowgram.ai/utils": "workspace:*",
  49. "inversify": "^6.0.1",
  50. "reflect-metadata": "~0.2.2",
  51. "lodash-es": "^4.17.21",
  52. "nanoid": "^5.0.9"
  53. },
  54. "devDependencies": {
  55. "@flowgram.ai/eslint-config": "workspace:*",
  56. "@flowgram.ai/ts-config": "workspace:*",
  57. "@testing-library/react": "^12",
  58. "@testing-library/react-hooks": "^8.0.1",
  59. "@types/bezier-js": "4.1.3",
  60. "@types/lodash-es": "^4.17.12",
  61. "@types/react": "^18",
  62. "@types/react-dom": "^18",
  63. "@vitest/coverage-v8": "^3.2.4",
  64. "eslint": "^9.0.0",
  65. "tsup": "^8.0.1",
  66. "typescript": "^5.8.3",
  67. "vitest": "^3.2.4"
  68. },
  69. "peerDependencies": {
  70. "react": ">=16.8",
  71. "react-dom": ">=16.8"
  72. },
  73. "publishConfig": {
  74. "access": "public",
  75. "registry": "https://registry.npmjs.org/"
  76. }
  77. }