package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. {
  2. "name": "rollup",
  3. "version": "4.24.2",
  4. "description": "Next-generation ES module bundler",
  5. "main": "dist/rollup.js",
  6. "module": "dist/es/rollup.js",
  7. "types": "dist/rollup.d.ts",
  8. "bin": {
  9. "rollup": "dist/bin/rollup"
  10. },
  11. "napi": {
  12. "name": "rollup",
  13. "package": {
  14. "name": "@rollup/rollup"
  15. },
  16. "triples": {
  17. "defaults": false,
  18. "additional": [
  19. "aarch64-apple-darwin",
  20. "aarch64-linux-android",
  21. "aarch64-pc-windows-msvc",
  22. "aarch64-unknown-freebsd",
  23. "aarch64-unknown-linux-gnu",
  24. "aarch64-unknown-linux-musl",
  25. "armv7-linux-androideabi",
  26. "armv7-unknown-linux-gnueabihf",
  27. "armv7-unknown-linux-musleabihf",
  28. "i686-pc-windows-msvc",
  29. "riscv64gc-unknown-linux-gnu",
  30. "powerpc64le-unknown-linux-gnu",
  31. "s390x-unknown-linux-gnu",
  32. "x86_64-apple-darwin",
  33. "x86_64-pc-windows-msvc",
  34. "x86_64-unknown-freebsd",
  35. "x86_64-unknown-linux-gnu",
  36. "x86_64-unknown-linux-musl"
  37. ]
  38. }
  39. },
  40. "scripts": {
  41. "build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
  42. "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
  43. "build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
  44. "build:wasm": "cross-env RUSTFLAGS=\"-C opt-level=z\" wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
  45. "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
  46. "update:napi": "npm run build:napi && npm run build:copy-native",
  47. "build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
  48. "build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
  49. "build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
  50. "update:js": "npm run build:js && npm run build:copy-native",
  51. "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
  52. "dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
  53. "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
  54. "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
  55. "build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
  56. "build:docs": "vitepress build docs",
  57. "build:ast-converters": "node scripts/generate-ast-converters.js",
  58. "preview:docs": "vitepress preview docs",
  59. "ci:artifacts": "napi artifacts",
  60. "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
  61. "ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
  62. "ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
  63. "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && nyc --reporter lcovonly mocha",
  64. "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
  65. "lint:js": "eslint . --fix --cache",
  66. "lint:js:nofix": "eslint . --cache",
  67. "lint:native-js": "node scripts/lint-native-js.js",
  68. "lint:markdown": "prettier --write \"**/*.md\"",
  69. "lint:markdown:nofix": "prettier --check \"**/*.md\"",
  70. "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
  71. "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
  72. "perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
  73. "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
  74. "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
  75. "postpublish": "node scripts/postpublish.js",
  76. "prepublish:napi": "napi prepublish --skip-gh-release",
  77. "release": "node scripts/prepare-release.js",
  78. "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
  79. "check-audit": "check-audit",
  80. "resolve-audit": "resolve-audit",
  81. "test": "npm run build && npm run test:all",
  82. "test:update-snapshots": "node scripts/update-snapshots.js",
  83. "test:cjs": "npm run build:cjs && npm run test:only",
  84. "test:quick": "mocha -b test/test.js",
  85. "test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
  86. "test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
  87. "test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
  88. "test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
  89. "test:package": "node scripts/test-package.js",
  90. "test:options": "node scripts/test-options.js",
  91. "test:only": "mocha test/test.js",
  92. "test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit && tsc --noEmit -p scripts",
  93. "test:browser": "mocha test/browser/index.js",
  94. "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
  95. },
  96. "repository": "rollup/rollup",
  97. "keywords": [
  98. "modules",
  99. "bundler",
  100. "bundling",
  101. "es6",
  102. "optimizer"
  103. ],
  104. "author": "Rich Harris",
  105. "license": "MIT",
  106. "bugs": {
  107. "url": "https://github.com/rollup/rollup/issues"
  108. },
  109. "homepage": "https://rollupjs.org/",
  110. "optionalDependencies": {
  111. "fsevents": "~2.3.2",
  112. "@rollup/rollup-darwin-arm64": "4.24.2",
  113. "@rollup/rollup-android-arm64": "4.24.2",
  114. "@rollup/rollup-win32-arm64-msvc": "4.24.2",
  115. "@rollup/rollup-freebsd-arm64": "4.24.2",
  116. "@rollup/rollup-linux-arm64-gnu": "4.24.2",
  117. "@rollup/rollup-linux-arm64-musl": "4.24.2",
  118. "@rollup/rollup-android-arm-eabi": "4.24.2",
  119. "@rollup/rollup-linux-arm-gnueabihf": "4.24.2",
  120. "@rollup/rollup-linux-arm-musleabihf": "4.24.2",
  121. "@rollup/rollup-win32-ia32-msvc": "4.24.2",
  122. "@rollup/rollup-linux-riscv64-gnu": "4.24.2",
  123. "@rollup/rollup-linux-powerpc64le-gnu": "4.24.2",
  124. "@rollup/rollup-linux-s390x-gnu": "4.24.2",
  125. "@rollup/rollup-darwin-x64": "4.24.2",
  126. "@rollup/rollup-win32-x64-msvc": "4.24.2",
  127. "@rollup/rollup-freebsd-x64": "4.24.2",
  128. "@rollup/rollup-linux-x64-gnu": "4.24.2",
  129. "@rollup/rollup-linux-x64-musl": "4.24.2"
  130. },
  131. "dependencies": {
  132. "@types/estree": "1.0.6"
  133. },
  134. "devDependenciesComments": {
  135. "core-js": "We only update manually as every update requires a snapshot update"
  136. },
  137. "devDependencies": {
  138. "@codemirror/commands": "^6.7.1",
  139. "@codemirror/lang-javascript": "^6.2.2",
  140. "@codemirror/language": "^6.10.3",
  141. "@codemirror/search": "^6.5.6",
  142. "@codemirror/state": "^6.4.1",
  143. "@codemirror/view": "^6.34.1",
  144. "@eslint/js": "^9.13.0",
  145. "@inquirer/prompts": "^7.0.0",
  146. "@jridgewell/sourcemap-codec": "^1.5.0",
  147. "@mermaid-js/mermaid-cli": "^11.2.1",
  148. "@napi-rs/cli": "^2.18.4",
  149. "@rollup/plugin-alias": "^5.1.1",
  150. "@rollup/plugin-buble": "^1.0.3",
  151. "@rollup/plugin-commonjs": "^28.0.1",
  152. "@rollup/plugin-json": "^6.1.0",
  153. "@rollup/plugin-node-resolve": "^15.3.0",
  154. "@rollup/plugin-replace": "^6.0.1",
  155. "@rollup/plugin-terser": "^0.4.4",
  156. "@rollup/plugin-typescript": "^12.1.1",
  157. "@rollup/pluginutils": "^5.1.2",
  158. "@shikijs/vitepress-twoslash": "^1.22.0",
  159. "@types/mocha": "^10.0.9",
  160. "@types/node": "^18.19.58",
  161. "@types/semver": "^7.5.8",
  162. "@types/yargs-parser": "^21.0.3",
  163. "@vue/language-server": "^2.1.6",
  164. "acorn": "^8.13.0",
  165. "acorn-import-assertions": "^1.9.0",
  166. "acorn-jsx": "^5.3.2",
  167. "buble": "^0.20.0",
  168. "builtin-modules": "^4.0.0",
  169. "chokidar": "^3.6.0",
  170. "colorette": "^2.0.20",
  171. "concurrently": "^9.0.1",
  172. "core-js": "3.38.1",
  173. "cross-env": "^7.0.3",
  174. "date-time": "^4.0.0",
  175. "es5-shim": "^4.6.7",
  176. "es6-shim": "^0.35.8",
  177. "eslint": "^9.13.0",
  178. "eslint-config-prettier": "^9.1.0",
  179. "eslint-plugin-prettier": "^5.2.1",
  180. "eslint-plugin-unicorn": "^56.0.0",
  181. "eslint-plugin-vue": "^9.29.1",
  182. "fixturify": "^3.0.0",
  183. "flru": "^1.0.2",
  184. "fs-extra": "^11.2.0",
  185. "github-api": "^3.4.0",
  186. "globals": "^15.11.0",
  187. "husky": "^9.1.6",
  188. "is-reference": "^3.0.2",
  189. "lint-staged": "^15.2.10",
  190. "locate-character": "^3.0.0",
  191. "magic-string": "^0.30.12",
  192. "mocha": "^10.7.3",
  193. "nodemon": "^3.1.7",
  194. "npm-audit-resolver": "^3.0.0-RC.0",
  195. "nyc": "^17.1.0",
  196. "pinia": "^2.2.4",
  197. "prettier": "^3.3.3",
  198. "prettier-plugin-organize-imports": "^4.1.0",
  199. "pretty-bytes": "^6.1.1",
  200. "pretty-ms": "^9.1.0",
  201. "requirejs": "^2.3.7",
  202. "rollup": "^4.24.0",
  203. "rollup-plugin-license": "^3.5.3",
  204. "rollup-plugin-string": "^3.0.0",
  205. "semver": "^7.6.3",
  206. "shx": "^0.3.4",
  207. "signal-exit": "^4.1.0",
  208. "source-map": "^0.7.4",
  209. "source-map-support": "^0.5.21",
  210. "systemjs": "^6.15.1",
  211. "terser": "^5.36.0",
  212. "tslib": "^2.8.0",
  213. "typescript": "^5.6.3",
  214. "typescript-eslint": "^8.11.0",
  215. "vite": "^5.4.9",
  216. "vitepress": "^1.4.1",
  217. "vue": "^3.5.12",
  218. "vue-tsc": "^2.1.6",
  219. "wasm-pack": "^0.13.0",
  220. "yargs-parser": "^21.1.1"
  221. },
  222. "overrides": {
  223. "axios": "^1.7.7",
  224. "semver": "^7.6.3",
  225. "ws": "^8.18.0"
  226. },
  227. "comments": {
  228. "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges",
  229. "ws": "mermaid requires an older 8.13.0 version via puppeteer with vulnerabilities"
  230. },
  231. "files": [
  232. "dist/*.node",
  233. "dist/**/*.js",
  234. "dist/*.d.ts",
  235. "dist/bin/rollup",
  236. "dist/es/package.json"
  237. ],
  238. "engines": {
  239. "node": ">=18.0.0",
  240. "npm": ">=8.0.0"
  241. },
  242. "exports": {
  243. ".": {
  244. "types": "./dist/rollup.d.ts",
  245. "require": "./dist/rollup.js",
  246. "import": "./dist/es/rollup.js"
  247. },
  248. "./loadConfigFile": {
  249. "types": "./dist/loadConfigFile.d.ts",
  250. "require": "./dist/loadConfigFile.js",
  251. "default": "./dist/loadConfigFile.js"
  252. },
  253. "./getLogFilter": {
  254. "types": "./dist/getLogFilter.d.ts",
  255. "require": "./dist/getLogFilter.js",
  256. "import": "./dist/es/getLogFilter.js"
  257. },
  258. "./parseAst": {
  259. "types": "./dist/parseAst.d.ts",
  260. "require": "./dist/parseAst.js",
  261. "import": "./dist/es/parseAst.js"
  262. },
  263. "./dist/*": "./dist/*"
  264. }
  265. }