package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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.16.1",
  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.2",
  48. "acorn": "^8.5.0",
  49. "commander": "^2.20.0",
  50. "source-map-support": "~0.5.20"
  51. },
  52. "devDependencies": {
  53. "@ls-lint/ls-lint": "^1.10.0",
  54. "astring": "^1.7.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. "rimraf": "^3.0.2",
  61. "rollup": "2.56.3",
  62. "semver": "^7.3.4",
  63. "source-map": "~0.8.0-beta.0"
  64. },
  65. "scripts": {
  66. "test": "node test/compress.js && mocha test/mocha",
  67. "test:compress": "node test/compress.js",
  68. "test:mocha": "mocha test/mocha",
  69. "lint": "eslint lib",
  70. "lint-fix": "eslint --fix lib",
  71. "ls-lint": "ls-lint",
  72. "build": "rimraf dist/bundle* && rollup --config --silent",
  73. "prepare": "npm run build",
  74. "postversion": "echo 'Remember to update the changelog!'"
  75. },
  76. "keywords": [
  77. "uglify",
  78. "terser",
  79. "uglify-es",
  80. "uglify-js",
  81. "minify",
  82. "minifier",
  83. "javascript",
  84. "ecmascript",
  85. "es5",
  86. "es6",
  87. "es7",
  88. "es8",
  89. "es2015",
  90. "es2016",
  91. "es2017",
  92. "async",
  93. "await"
  94. ],
  95. "eslintConfig": {
  96. "parserOptions": {
  97. "sourceType": "module",
  98. "ecmaVersion": 2020
  99. },
  100. "env": {
  101. "node": true,
  102. "browser": true,
  103. "es2020": true
  104. },
  105. "globals": {
  106. "describe": false,
  107. "it": false,
  108. "require": false,
  109. "before": false,
  110. "after": false,
  111. "global": false,
  112. "process": false
  113. },
  114. "rules": {
  115. "brace-style": [
  116. "error",
  117. "1tbs",
  118. {
  119. "allowSingleLine": true
  120. }
  121. ],
  122. "quotes": [
  123. "error",
  124. "double",
  125. "avoid-escape"
  126. ],
  127. "no-debugger": "error",
  128. "no-undef": "error",
  129. "no-unused-vars": [
  130. "error",
  131. {
  132. "varsIgnorePattern": "^_"
  133. }
  134. ],
  135. "no-tabs": "error",
  136. "semi": [
  137. "error",
  138. "always"
  139. ],
  140. "no-extra-semi": "error",
  141. "no-irregular-whitespace": "error",
  142. "space-before-blocks": [
  143. "error",
  144. "always"
  145. ]
  146. }
  147. },
  148. "pre-commit": [
  149. "build",
  150. "lint-fix",
  151. "ls-lint",
  152. "test"
  153. ]
  154. }