package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "@messageformat/runtime",
  3. "version": "3.0.1",
  4. "description": "Runtime components of messageformat",
  5. "keywords": [
  6. "i18n",
  7. "icu",
  8. "messageformat",
  9. "internationalization"
  10. ],
  11. "contributors": [
  12. "Eemeli Aro <eemeli@gmail.com>"
  13. ],
  14. "license": "MIT",
  15. "homepage": "https://messageformat.github.io/",
  16. "repository": {
  17. "type": "git",
  18. "url": "https://github.com/messageformat/messageformat.git",
  19. "directory": "packages/runtime"
  20. },
  21. "files": [
  22. "esm/",
  23. "lib/",
  24. "messages.*"
  25. ],
  26. "type": "commonjs",
  27. "main": "./lib/runtime.js",
  28. "exports": {
  29. ".": {
  30. "import": "./esm/runtime.js",
  31. "default": "./lib/runtime.js"
  32. },
  33. "./lib/cardinals": {
  34. "import": "./esm/cardinals.js",
  35. "default": "./lib/cardinals.js"
  36. },
  37. "./lib/formatters": {
  38. "import": "./esm/formatters.js",
  39. "default": "./lib/formatters.js"
  40. },
  41. "./lib/plurals": {
  42. "import": "./esm/plurals.js",
  43. "default": "./lib/plurals.js"
  44. },
  45. "./messages": {
  46. "import": "./esm/messages.js",
  47. "default": "./messages.js"
  48. }
  49. },
  50. "browser": {
  51. "./lib/runtime.js": "./esm/runtime.js",
  52. "./lib/cardinals.js": "./esm/cardinals.js",
  53. "./lib/formatters.js": "./esm/formatters.js",
  54. "./lib/plurals.js": "./esm/plurals.js",
  55. "./messages.js": "./esm/messages.js"
  56. },
  57. "sideEffects": false,
  58. "scripts": {
  59. "build:cjs": "tsc --project tsconfig.build.json --declaration --module CommonJS --outDir lib",
  60. "build:esm": "tsc --project tsconfig.build.json --module ES6 --outDir esm",
  61. "build": "npm run build:cjs && npm run build:esm",
  62. "extract-api": "api-extractor run --local --verbose",
  63. "prepublishOnly": "npm run build"
  64. },
  65. "dependencies": {
  66. "make-plural": "^7.0.0"
  67. },
  68. "browserslist": [
  69. "last 1 version",
  70. "> 1%",
  71. "maintained node versions",
  72. "not dead"
  73. ]
  74. }