package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "name": "terser-webpack-plugin",
  3. "version": "5.3.10",
  4. "description": "Terser plugin for webpack",
  5. "license": "MIT",
  6. "repository": "webpack-contrib/terser-webpack-plugin",
  7. "author": "webpack Contrib Team",
  8. "homepage": "https://github.com/webpack-contrib/terser-webpack-plugin",
  9. "bugs": "https://github.com/webpack-contrib/terser-webpack-plugin/issues",
  10. "funding": {
  11. "type": "opencollective",
  12. "url": "https://opencollective.com/webpack"
  13. },
  14. "main": "dist/index.js",
  15. "types": "types/index.d.ts",
  16. "engines": {
  17. "node": ">= 10.13.0"
  18. },
  19. "scripts": {
  20. "clean": "del-cli dist types",
  21. "prebuild": "npm run clean",
  22. "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
  23. "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
  24. "build": "npm-run-all -p \"build:**\"",
  25. "commitlint": "commitlint --from=master",
  26. "security": "npm audit --production",
  27. "lint:prettier": "prettier --list-different .",
  28. "lint:js": "eslint --cache .",
  29. "lint:spelling": "cspell \"**/*.*\"",
  30. "lint:types": "tsc --pretty --noEmit",
  31. "lint": "npm-run-all -l -p \"lint:**\"",
  32. "fix:js": "npm run lint:js -- --fix",
  33. "fix:prettier": "npm run lint:prettier -- --write",
  34. "fix": "npm-run-all -l fix:js fix:prettier",
  35. "test:only": "cross-env NODE_ENV=test jest",
  36. "test:watch": "npm run test:only -- --watch",
  37. "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
  38. "pretest": "npm run lint",
  39. "test": "npm run test:coverage",
  40. "prepare": "husky install && npm run build",
  41. "release": "standard-version"
  42. },
  43. "files": [
  44. "dist",
  45. "types"
  46. ],
  47. "peerDependencies": {
  48. "webpack": "^5.1.0"
  49. },
  50. "peerDependenciesMeta": {
  51. "@swc/core": {
  52. "optional": true
  53. },
  54. "uglify-js": {
  55. "optional": true
  56. },
  57. "esbuild": {
  58. "optional": true
  59. }
  60. },
  61. "dependencies": {
  62. "@jridgewell/trace-mapping": "^0.3.20",
  63. "jest-worker": "^27.4.5",
  64. "schema-utils": "^3.1.1",
  65. "serialize-javascript": "^6.0.1",
  66. "terser": "^5.26.0"
  67. },
  68. "devDependencies": {
  69. "@babel/cli": "^7.22.15",
  70. "@babel/core": "^7.22.17",
  71. "@babel/preset-env": "^7.22.15",
  72. "@commitlint/cli": "^17.7.1",
  73. "@commitlint/config-conventional": "^17.7.0",
  74. "@swc/core": "^1.3.84",
  75. "@types/node": "^18.15.11",
  76. "@types/serialize-javascript": "^5.0.2",
  77. "@types/uglify-js": "^3.17.1",
  78. "@webpack-contrib/eslint-config-webpack": "^3.0.0",
  79. "babel-jest": "^28.1.2",
  80. "copy-webpack-plugin": "^9.0.1",
  81. "cross-env": "^7.0.3",
  82. "cspell": "^6.31.2",
  83. "del": "^6.0.0",
  84. "del-cli": "^3.0.1",
  85. "esbuild": "^0.19.10",
  86. "eslint": "^7.32.0",
  87. "eslint-config-prettier": "^8.9.0",
  88. "eslint-plugin-import": "^2.28.1",
  89. "file-loader": "^6.2.0",
  90. "husky": "^7.0.2",
  91. "jest": "^27.5.1",
  92. "lint-staged": "^13.2.3",
  93. "memfs": "^3.4.13",
  94. "npm-run-all": "^4.1.5",
  95. "prettier": "^2.8.7",
  96. "standard-version": "^9.3.1",
  97. "typescript": "^4.9.5",
  98. "uglify-js": "^3.17.4",
  99. "webpack": "^5.88.2",
  100. "webpack-cli": "^4.10.0",
  101. "worker-loader": "^3.0.8"
  102. },
  103. "keywords": [
  104. "uglify",
  105. "uglify-js",
  106. "uglify-es",
  107. "terser",
  108. "webpack",
  109. "webpack-plugin",
  110. "minification",
  111. "compress",
  112. "compressor",
  113. "min",
  114. "minification",
  115. "minifier",
  116. "minify",
  117. "optimize",
  118. "optimizer"
  119. ]
  120. }