package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "fflate",
  3. "version": "0.6.8",
  4. "description": "High performance (de)compression in an 8kB package",
  5. "main": "./lib/index.cjs",
  6. "module": "./esm/browser.js",
  7. "types": "./lib/index.d.ts",
  8. "unpkg": "./umd/index.js",
  9. "jsdelivr": "./umd/index.js",
  10. "browser": {
  11. "./lib/node-worker.cjs": "./lib/worker.cjs"
  12. },
  13. "exports": {
  14. ".": {
  15. "node": {
  16. "import": "./esm/index.mjs",
  17. "require": "./lib/node.cjs"
  18. },
  19. "import": "./esm/browser.js",
  20. "require": "./lib/index.cjs"
  21. },
  22. "./node": {
  23. "import": "./esm/index.mjs",
  24. "require": "./lib/node.cjs"
  25. },
  26. "./browser": {
  27. "import": "./esm/browser.js",
  28. "require": "./lib/browser.cjs"
  29. }
  30. },
  31. "targets": {
  32. "main": false,
  33. "module": false,
  34. "browser": false,
  35. "types": false
  36. },
  37. "sideEffects": false,
  38. "homepage": "https://101arrowz.github.io/fflate",
  39. "repository": "https://github.com/101arrowz/fflate",
  40. "bugs": {
  41. "email": "[email protected]",
  42. "url": "https://github.com/101arrowz/fflate/issues"
  43. },
  44. "author": "Arjun Barrett <[email protected]>",
  45. "license": "MIT",
  46. "keywords": [
  47. "gzip",
  48. "gunzip",
  49. "deflate",
  50. "inflate",
  51. "compression",
  52. "decompression",
  53. "zlib",
  54. "pako",
  55. "jszip",
  56. "browser",
  57. "node.js",
  58. "tiny",
  59. "fast",
  60. "zip",
  61. "unzip",
  62. "non-blocking"
  63. ],
  64. "scripts": {
  65. "build": "yarn build:lib && yarn build:docs && yarn build:demo",
  66. "script": "node -r ts-node/register scripts/$SC.ts",
  67. "build:lib": "tsc && tsc --project tsconfig.esm.json && yarn build:rewrite && yarn build:umd",
  68. "build:umd": "SC=buildUMD yarn script",
  69. "build:rewrite": "SC=rewriteBuilds yarn script",
  70. "build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && SC=cpGHPages yarn script",
  71. "build:docs": "typedoc --mode library --plugin typedoc-plugin-markdown --hideProjectName --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --out docs/ src/index.ts",
  72. "test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",
  73. "prepack": "yarn build && yarn test"
  74. },
  75. "devDependencies": {
  76. "@types/node": "^14.11.2",
  77. "@types/pako": "*",
  78. "@types/react": "^16.9.55",
  79. "@types/react-dom": "^16.9.9",
  80. "jszip": "^3.5.0",
  81. "pako": "*",
  82. "parcel": "^2.0.0-nightly.440",
  83. "parcel-config-precache-manifest": "^0.0.3",
  84. "preact": "^10.5.5",
  85. "react": "^17.0.1",
  86. "react-dom": "^17.0.1",
  87. "simple-git": "^2.22.0",
  88. "terser": "^5.3.8",
  89. "tiny-inflate": "*",
  90. "ts-node": "^9.0.0",
  91. "typedoc": "^0.17.0-3",
  92. "typedoc-plugin-markdown": "^3.0.2",
  93. "typescript": "^4.0.2",
  94. "uvu": "^0.3.3",
  95. "uzip": "*"
  96. },
  97. "alias": {
  98. "react": "preact/compat",
  99. "react-dom": "preact/compat",
  100. "react-dom/test-utils": "preact/test-utils"
  101. }
  102. }