package.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "name": "@growi/markdown-splitter",
  3. "version": "1.0.0",
  4. "license": "MIT",
  5. "private": "true",
  6. "type": "module",
  7. "module": "dist/index.js",
  8. "types": "dist/index.d.ts",
  9. "files": [
  10. "dist"
  11. ],
  12. "main": "dist/index.cjs",
  13. "exports": {
  14. ".": {
  15. "import": "./dist/index.js",
  16. "require": "./dist/index.cjs"
  17. }
  18. },
  19. "scripts": {
  20. "build": "vite build",
  21. "clean": "shx rm -rf dist",
  22. "dev": "vite build --mode dev",
  23. "watch": "pnpm run dev -w --emptyOutDir=false",
  24. "lint:js": "eslint **/*.{js,ts}",
  25. "lint:typecheck": "tsc",
  26. "lint": "npm-run-all -p lint:*",
  27. "test": "vitest run --coverage"
  28. },
  29. "dependencies": {
  30. "js-tiktoken": "^1.0.15",
  31. "js-yaml": "^4.1.0",
  32. "remark-frontmatter": "^5.0.0",
  33. "remark-gfm": "^4.0.0",
  34. "remark-parse": "^11.0.0",
  35. "remark-stringify": "^11.0.0",
  36. "unified": "^11.0.0"
  37. },
  38. "devDependencies": {
  39. "@types/js-yaml": "^4.0.9",
  40. "eslint-plugin-regex": "^1.8.0",
  41. "hast-util-sanitize": "^4.1.0",
  42. "pako": "^2.1.0",
  43. "throttle-debounce": "^5.0.0"
  44. },
  45. "peerDependencies": {
  46. "react": "^18.2.0",
  47. "react-dom": "^18.2.0"
  48. }
  49. }