package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "xxhash-wasm",
  3. "version": "1.0.2",
  4. "description": "A WebAssembly implementation of xxHash",
  5. "type": "module",
  6. "main": "./cjs/xxhash-wasm.cjs",
  7. "module": "./esm/xxhash-wasm.js",
  8. "exports": {
  9. "types": "./types.d.ts",
  10. "import": "./esm/xxhash-wasm.js",
  11. "require": "./cjs/xxhash-wasm.cjs"
  12. },
  13. "types": "./types.d.ts",
  14. "author": "Michael Jungo <michaeljungo92@gmail.com>",
  15. "license": "MIT",
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/jungomi/xxhash-wasm.git"
  19. },
  20. "files": [
  21. "cjs",
  22. "esm",
  23. "umd",
  24. "types.d.ts"
  25. ],
  26. "keywords": [
  27. "xxhash",
  28. "hash",
  29. "wasm",
  30. "webassembly"
  31. ],
  32. "scripts": {
  33. "build": "yarn run build-wasm && yarn run build-js",
  34. "build-js": "rollup -c",
  35. "build-wasm": "wasm-opt --enable-bulk-memory -O4 src/xxhash.wat -o src/xxhash.wasm",
  36. "clean": "rimraf coverage cjs esm umd",
  37. "fix": "eslint . --fix",
  38. "lint": "eslint .",
  39. "size": "bundlewatch",
  40. "test": "jest",
  41. "test-update": "jest --updateSnapshot",
  42. "test-coverage": "jest --coverage",
  43. "prebuild": "yarn run clean",
  44. "prepublish": "yarn run build"
  45. },
  46. "devDependencies": {
  47. "@babel/core": "^7.19.6",
  48. "@babel/eslint-parser": "^7.19.1",
  49. "@babel/preset-env": "^7.19.4",
  50. "bundlewatch": "^0.3.3",
  51. "eslint": "^8.26.0",
  52. "eslint-config-prettier": "^8.5.0",
  53. "eslint-plugin-prettier": "^4.2.1",
  54. "jest": "^29.2.2",
  55. "jest-t-assert": "^0.3.0",
  56. "node-gyp": "^9.3.0",
  57. "prettier": "^2.7.1",
  58. "rimraf": "^3.0.2",
  59. "rollup": "^3.2.5",
  60. "rollup-plugin-babel": "^4.4.0",
  61. "rollup-plugin-node-resolve": "^5.2.0",
  62. "rollup-plugin-replace": "^2.2.0",
  63. "rollup-plugin-terser": "^7.0.2"
  64. },
  65. "bundlewatch": {
  66. "files": [
  67. {
  68. "path": "./cjs/xxhash-wasm.cjs",
  69. "maxSize": "2.2kb"
  70. },
  71. {
  72. "path": "./esm/xxhash-wasm.js",
  73. "maxSize": "2.2kb"
  74. },
  75. {
  76. "path": "./umd/xxhash-wasm.js",
  77. "maxSize": "2.3kb"
  78. }
  79. ]
  80. },
  81. "packageManager": "yarn@3.2.4"
  82. }