package.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "wasm-feature-detect",
  3. "version": "1.8.0",
  4. "description": "A small library to detect which features of WebAssembly are supported in your current browser.",
  5. "exports": {
  6. ".": {
  7. "import": {
  8. "types": "./dist/index.d.ts",
  9. "default": "./dist/esm/index.js"
  10. },
  11. "require": {
  12. "types": "./dist/index.d.cts",
  13. "default": "./dist/cjs/index.cjs"
  14. },
  15. "browser": "./dist/esm/index.js"
  16. },
  17. "./package.json": "./package.json"
  18. },
  19. "main": "./dist/cjs/index.cjs",
  20. "module": "./dist/esm/index.js",
  21. "types": "dist/index.d.ts",
  22. "type": "module",
  23. "files": [
  24. "dist"
  25. ],
  26. "scripts": {
  27. "build:library": "rollup -c",
  28. "build:readme": "node --experimental-modules ./render-readme.mjs",
  29. "build:dts": "node --experimental-modules ./render-dts.mjs",
  30. "build": "npm run build:library && npm run build:readme && npm run build:dts && npm run fmt",
  31. "build:website": "npm run build && node genwebsite.cjs",
  32. "prepublishOnly": "npm run build",
  33. "fmt": "prettier --write --no-error-on-unmatched-pattern ./{src,test,rollup-plugins}/*.{mjs,cjs,js,md} *.{mjs,cjs,js,md}",
  34. "fmt_test": "prettier --check --no-error-on-unmatched-pattern --write ./{src,test,rollup-plugins}/*.{mjs,cjs,js,md} *.{mjs,cjs,js,md}",
  35. "test": "npm run fmt_test && npm run build && node --no-warnings test/index.cjs"
  36. },
  37. "repository": "GoogleChromeLabs/wasm-feature-detect",
  38. "keywords": [],
  39. "author": "Surma <surma@surma.link>",
  40. "license": "Apache-2.0",
  41. "devDependencies": {
  42. "@rollup/plugin-commonjs": "^26.0.1",
  43. "@rollup/plugin-terser": "^0.4.4",
  44. "binaryen": "^119.0.0",
  45. "ejs": "^3.1.10",
  46. "highlight.js": "^11.10.0",
  47. "magic-string": "^0.30.11",
  48. "markdown-it": "^14.1.0",
  49. "prettier": "^3.3.3",
  50. "rollup": "^4.21.3",
  51. "wabt": "^1.0.36"
  52. }
  53. }