package.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "@flowgram.ai/utils",
  3. "version": "0.1.8",
  4. "homepage": "https://flowgram.ai/",
  5. "repository": "https://github.com/bytedance/flowgram.ai",
  6. "license": "MIT",
  7. "exports": {
  8. "types": "./dist/index.d.ts",
  9. "import": "./dist/esm/index.js",
  10. "require": "./dist/index.js"
  11. },
  12. "main": "./dist/index.js",
  13. "module": "./dist/esm/index.js",
  14. "types": "./dist/index.d.ts",
  15. "files": [
  16. "dist"
  17. ],
  18. "scripts": {
  19. "build": "npm run build:fast -- --dts-resolve",
  20. "build:fast": "tsup src/index.ts --format cjs,esm --sourcemap --legacy-output",
  21. "build:watch": "npm run build:fast -- --dts-resolve",
  22. "clean": "rimraf dist",
  23. "test": "vitest run",
  24. "test:cov": "vitest run --coverage",
  25. "ts-check": "tsc --noEmit",
  26. "watch": "npm run build:fast -- --dts-resolve --watch --ignore-watch dist"
  27. },
  28. "dependencies": {
  29. "clsx": "^1.1.1",
  30. "inversify": "^6.0.1",
  31. "reflect-metadata": "~0.2.2",
  32. "nanoid": "^5.0.9"
  33. },
  34. "devDependencies": {
  35. "@flowgram.ai/eslint-config": "workspace:*",
  36. "@flowgram.ai/ts-config": "workspace:*",
  37. "@testing-library/react": "^12",
  38. "@types/react": "^18",
  39. "@types/react-dom": "^18",
  40. "@vitest/coverage-v8": "^3.2.4",
  41. "eslint": "^9.0.0",
  42. "jsdom": "^26.1.0",
  43. "react": "^18",
  44. "react-dom": "^18",
  45. "tsup": "^8.0.1",
  46. "typescript": "^5.8.3",
  47. "vitest": "^3.2.4"
  48. },
  49. "peerDependencies": {
  50. "react": ">=16.8",
  51. "react-dom": ">=16.8"
  52. },
  53. "publishConfig": {
  54. "access": "public",
  55. "registry": "https://registry.npmjs.org/"
  56. }
  57. }