package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {
  2. "name": "terser",
  3. "description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
  4. "homepage": "https://terser.org",
  5. "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
  6. "license": "BSD-2-Clause",
  7. "version": "5.10.0",
  8. "engines": {
  9. "node": ">=10"
  10. },
  11. "maintainers": [
  12. "Fábio Santos <fabiosantosart@gmail.com>"
  13. ],
  14. "repository": "https://github.com/terser/terser",
  15. "main": "dist/bundle.min.js",
  16. "type": "module",
  17. "module": "./main.js",
  18. "exports": {
  19. ".": [
  20. {
  21. "import": "./main.js",
  22. "require": "./dist/bundle.min.js"
  23. },
  24. "./dist/bundle.min.js"
  25. ],
  26. "./package": "./package.json",
  27. "./package.json": "./package.json",
  28. "./bin/terser": "./bin/terser"
  29. },
  30. "types": "tools/terser.d.ts",
  31. "bin": {
  32. "terser": "bin/terser"
  33. },
  34. "files": [
  35. "bin",
  36. "dist",
  37. "lib",
  38. "tools",
  39. "LICENSE",
  40. "README.md",
  41. "CHANGELOG.md",
  42. "PATRONS.md",
  43. "main.js"
  44. ],
  45. "dependencies": {
  46. "commander": "^2.20.0",
  47. "source-map": "~0.7.2",
  48. "source-map-support": "~0.5.20"
  49. },
  50. "devDependencies": {
  51. "@ls-lint/ls-lint": "^1.10.0",
  52. "astring": "^1.7.5",
  53. "eslint": "^7.32.0",
  54. "eslump": "^3.0.0",
  55. "esm": "^3.2.25",
  56. "mocha": "^9.1.1",
  57. "pre-commit": "^1.2.2",
  58. "rimraf": "^3.0.2",
  59. "rollup": "2.56.3",
  60. "semver": "^7.3.4"
  61. },
  62. "peerDependencies": {
  63. "acorn": "^8.5.0"
  64. },
  65. "peerDependenciesMeta": {
  66. "acorn": {
  67. "optional": true
  68. }
  69. },
  70. "scripts": {
  71. "test": "node test/compress.js && mocha test/mocha",
  72. "test:compress": "node test/compress.js",
  73. "test:mocha": "mocha test/mocha",
  74. "lint": "eslint lib",
  75. "lint-fix": "eslint --fix lib",
  76. "ls-lint": "ls-lint",
  77. "build": "rimraf dist/bundle* && rollup --config --silent",
  78. "prepare": "npm run build",
  79. "postversion": "echo 'Remember to update the changelog!'"
  80. },
  81. "keywords": [
  82. "uglify",
  83. "terser",
  84. "uglify-es",
  85. "uglify-js",
  86. "minify",
  87. "minifier",
  88. "javascript",
  89. "ecmascript",
  90. "es5",
  91. "es6",
  92. "es7",
  93. "es8",
  94. "es2015",
  95. "es2016",
  96. "es2017",
  97. "async",
  98. "await"
  99. ],
  100. "eslintConfig": {
  101. "parserOptions": {
  102. "sourceType": "module",
  103. "ecmaVersion": 2020
  104. },
  105. "env": {
  106. "node": true,
  107. "browser": true,
  108. "es2020": true
  109. },
  110. "globals": {
  111. "describe": false,
  112. "it": false,
  113. "require": false,
  114. "global": false,
  115. "process": false
  116. },
  117. "rules": {
  118. "brace-style": [
  119. "error",
  120. "1tbs",
  121. {
  122. "allowSingleLine": true
  123. }
  124. ],
  125. "quotes": [
  126. "error",
  127. "double",
  128. "avoid-escape"
  129. ],
  130. "no-debugger": "error",
  131. "no-undef": "error",
  132. "no-unused-vars": [
  133. "error",
  134. {
  135. "varsIgnorePattern": "^_"
  136. }
  137. ],
  138. "no-tabs": "error",
  139. "semi": [
  140. "error",
  141. "always"
  142. ],
  143. "no-extra-semi": "error",
  144. "no-irregular-whitespace": "error",
  145. "space-before-blocks": [
  146. "error",
  147. "always"
  148. ]
  149. }
  150. },
  151. "pre-commit": [
  152. "build",
  153. "lint-fix",
  154. "ls-lint",
  155. "test"
  156. ]
  157. }