package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.31.6",
  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. "types": "./tools/terser.d.ts",
  22. "import": "./main.js",
  23. "require": "./dist/bundle.min.js"
  24. },
  25. "./dist/bundle.min.js"
  26. ],
  27. "./package": "./package.json",
  28. "./package.json": "./package.json",
  29. "./bin/terser": "./bin/terser"
  30. },
  31. "types": "tools/terser.d.ts",
  32. "bin": {
  33. "terser": "bin/terser"
  34. },
  35. "files": [
  36. "bin",
  37. "dist",
  38. "lib",
  39. "tools",
  40. "LICENSE",
  41. "README.md",
  42. "CHANGELOG.md",
  43. "PATRONS.md",
  44. "main.js"
  45. ],
  46. "dependencies": {
  47. "@jridgewell/source-map": "^0.3.3",
  48. "acorn": "^8.8.2",
  49. "commander": "^2.20.0",
  50. "source-map-support": "~0.5.20"
  51. },
  52. "devDependencies": {
  53. "@ls-lint/ls-lint": "^1.11.2",
  54. "astring": "^1.8.5",
  55. "eslint": "^7.32.0",
  56. "eslump": "^3.0.0",
  57. "esm": "^3.2.25",
  58. "mocha": "^9.2.0",
  59. "pre-commit": "^1.2.2",
  60. "rollup": "^2.56.3",
  61. "semver": "^7.5.1",
  62. "source-map": "~0.8.0-beta.0"
  63. },
  64. "scripts": {
  65. "test": "node test/compress.js && mocha test/mocha",
  66. "test:compress": "node test/compress.js",
  67. "test:mocha": "mocha test/mocha",
  68. "lint": "eslint lib",
  69. "lint-fix": "eslint --fix lib",
  70. "ls-lint": "ls-lint",
  71. "build": "rollup --config --silent",
  72. "prepare": "npm run build",
  73. "postversion": "echo 'Remember to update the changelog!'"
  74. },
  75. "keywords": [
  76. "uglify",
  77. "terser",
  78. "uglify-es",
  79. "uglify-js",
  80. "minify",
  81. "minifier",
  82. "javascript",
  83. "ecmascript",
  84. "es5",
  85. "es6",
  86. "es7",
  87. "es8",
  88. "es2015",
  89. "es2016",
  90. "es2017",
  91. "async",
  92. "await"
  93. ],
  94. "eslintConfig": {
  95. "parserOptions": {
  96. "sourceType": "module",
  97. "ecmaVersion": 2020
  98. },
  99. "env": {
  100. "node": true,
  101. "browser": true,
  102. "es2020": true
  103. },
  104. "globals": {
  105. "describe": false,
  106. "it": false,
  107. "require": false,
  108. "before": false,
  109. "after": false,
  110. "global": false,
  111. "process": false
  112. },
  113. "rules": {
  114. "brace-style": [
  115. "error",
  116. "1tbs",
  117. {
  118. "allowSingleLine": true
  119. }
  120. ],
  121. "quotes": [
  122. "error",
  123. "double",
  124. "avoid-escape"
  125. ],
  126. "no-debugger": "error",
  127. "no-undef": "error",
  128. "no-unused-vars": [
  129. "error",
  130. {
  131. "varsIgnorePattern": "^_"
  132. }
  133. ],
  134. "no-tabs": "error",
  135. "semi": [
  136. "error",
  137. "always"
  138. ],
  139. "no-extra-semi": "error",
  140. "no-irregular-whitespace": "error",
  141. "space-before-blocks": [
  142. "error",
  143. "always"
  144. ]
  145. }
  146. },
  147. "pre-commit": [
  148. "build",
  149. "lint-fix",
  150. "ls-lint",
  151. "test"
  152. ]
  153. }