You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

267 lines
11 KiB

  1. {
  2. "name": "rollup",
  3. "version": "4.40.0",
  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. "loongarch64-unknown-linux-gnu",
  30. "riscv64gc-unknown-linux-gnu",
  31. "riscv64gc-unknown-linux-musl",
  32. "powerpc64le-unknown-linux-gnu",
  33. "s390x-unknown-linux-gnu",
  34. "x86_64-apple-darwin",
  35. "x86_64-pc-windows-msvc",
  36. "x86_64-unknown-freebsd",
  37. "x86_64-unknown-linux-gnu",
  38. "x86_64-unknown-linux-musl"
  39. ]
  40. }
  41. },
  42. "scripts": {
  43. "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",
  44. "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
  45. "build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
  46. "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",
  47. "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
  48. "update:napi": "npm run build:napi && npm run build:copy-native",
  49. "build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
  50. "build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
  51. "build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
  52. "update:js": "npm run build:js && npm run build:copy-native",
  53. "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
  54. "dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
  55. "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
  56. "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
  57. "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",
  58. "build:docs": "vitepress build docs",
  59. "build:ast-converters": "node scripts/generate-ast-converters.js",
  60. "preview:docs": "vitepress preview docs",
  61. "ci:artifacts": "napi artifacts",
  62. "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
  63. "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",
  64. "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'",
  65. "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-detect-module nyc --reporter lcovonly mocha",
  66. "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
  67. "lint:js": "eslint . --fix --cache",
  68. "lint:js:nofix": "eslint . --cache",
  69. "lint:native-js": "node scripts/lint-native-js.js",
  70. "lint:markdown": "prettier --write \"**/*.md\"",
  71. "lint:markdown:nofix": "prettier --check \"**/*.md\"",
  72. "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
  73. "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
  74. "perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
  75. "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
  76. "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
  77. "postpublish": "node scripts/postpublish.js",
  78. "prepublish:napi": "napi prepublish --skip-gh-release",
  79. "release": "node scripts/prepare-release.js",
  80. "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
  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.40.0",
  113. "@rollup/rollup-android-arm64": "4.40.0",
  114. "@rollup/rollup-win32-arm64-msvc": "4.40.0",
  115. "@rollup/rollup-freebsd-arm64": "4.40.0",
  116. "@rollup/rollup-linux-arm64-gnu": "4.40.0",
  117. "@rollup/rollup-linux-arm64-musl": "4.40.0",
  118. "@rollup/rollup-android-arm-eabi": "4.40.0",
  119. "@rollup/rollup-linux-arm-gnueabihf": "4.40.0",
  120. "@rollup/rollup-linux-arm-musleabihf": "4.40.0",
  121. "@rollup/rollup-win32-ia32-msvc": "4.40.0",
  122. "@rollup/rollup-linux-loongarch64-gnu": "4.40.0",
  123. "@rollup/rollup-linux-riscv64-gnu": "4.40.0",
  124. "@rollup/rollup-linux-riscv64-musl": "4.40.0",
  125. "@rollup/rollup-linux-powerpc64le-gnu": "4.40.0",
  126. "@rollup/rollup-linux-s390x-gnu": "4.40.0",
  127. "@rollup/rollup-darwin-x64": "4.40.0",
  128. "@rollup/rollup-win32-x64-msvc": "4.40.0",
  129. "@rollup/rollup-freebsd-x64": "4.40.0",
  130. "@rollup/rollup-linux-x64-gnu": "4.40.0",
  131. "@rollup/rollup-linux-x64-musl": "4.40.0"
  132. },
  133. "dependencies": {
  134. "@types/estree": "1.0.7"
  135. },
  136. "devDependenciesComments": {
  137. "core-js": "We only update manually as every update requires a snapshot update"
  138. },
  139. "devDependencies": {
  140. "@codemirror/commands": "^6.8.1",
  141. "@codemirror/lang-javascript": "^6.2.3",
  142. "@codemirror/language": "^6.11.0",
  143. "@codemirror/search": "^6.5.10",
  144. "@codemirror/state": "^6.5.2",
  145. "@codemirror/view": "^6.36.5",
  146. "@eslint/js": "^9.24.0",
  147. "@inquirer/prompts": "^7.4.1",
  148. "@jridgewell/sourcemap-codec": "^1.5.0",
  149. "@mermaid-js/mermaid-cli": "^11.4.2",
  150. "@napi-rs/cli": "^2.18.4",
  151. "@rollup/plugin-alias": "^5.1.1",
  152. "@rollup/plugin-buble": "^1.0.3",
  153. "@rollup/plugin-commonjs": "^28.0.3",
  154. "@rollup/plugin-json": "^6.1.0",
  155. "@rollup/plugin-node-resolve": "^16.0.1",
  156. "@rollup/plugin-replace": "^6.0.2",
  157. "@rollup/plugin-terser": "^0.4.4",
  158. "@rollup/plugin-typescript": "^12.1.2",
  159. "@rollup/pluginutils": "^5.1.4",
  160. "@shikijs/vitepress-twoslash": "^3.2.1",
  161. "@types/mocha": "^10.0.10",
  162. "@types/node": "^18.19.86",
  163. "@types/picomatch": "^4.0.0",
  164. "@types/semver": "^7.7.0",
  165. "@types/yargs-parser": "^21.0.3",
  166. "@vue/language-server": "^2.2.8",
  167. "acorn": "^8.14.1",
  168. "acorn-import-assertions": "^1.9.0",
  169. "acorn-jsx": "^5.3.2",
  170. "buble": "^0.20.0",
  171. "builtin-modules": "^5.0.0",
  172. "chokidar": "^3.6.0",
  173. "concurrently": "^9.1.2",
  174. "core-js": "3.38.1",
  175. "cross-env": "^7.0.3",
  176. "date-time": "^4.0.0",
  177. "es5-shim": "^4.6.7",
  178. "es6-shim": "^0.35.8",
  179. "eslint": "^9.24.0",
  180. "eslint-config-prettier": "^10.1.1",
  181. "eslint-plugin-prettier": "^5.2.6",
  182. "eslint-plugin-unicorn": "^58.0.0",
  183. "eslint-plugin-vue": "^10.0.0",
  184. "fixturify": "^3.0.0",
  185. "flru": "^1.0.2",
  186. "fs-extra": "^11.3.0",
  187. "github-api": "^3.4.0",
  188. "globals": "^16.0.0",
  189. "husky": "^9.1.7",
  190. "is-reference": "^3.0.3",
  191. "lint-staged": "^15.5.0",
  192. "locate-character": "^3.0.0",
  193. "magic-string": "^0.30.17",
  194. "mocha": "^11.1.0",
  195. "nodemon": "^3.1.9",
  196. "nyc": "^17.1.0",
  197. "picocolors": "^1.1.1",
  198. "picomatch": "^4.0.2",
  199. "pinia": "^3.0.1",
  200. "prettier": "^3.5.3",
  201. "prettier-plugin-organize-imports": "^4.1.0",
  202. "pretty-bytes": "^6.1.1",
  203. "pretty-ms": "^9.2.0",
  204. "requirejs": "^2.3.7",
  205. "rollup": "^4.39.0",
  206. "rollup-plugin-license": "^3.6.0",
  207. "rollup-plugin-string": "^3.0.0",
  208. "semver": "^7.7.1",
  209. "shx": "^0.4.0",
  210. "signal-exit": "^4.1.0",
  211. "source-map": "^0.7.4",
  212. "source-map-support": "^0.5.21",
  213. "systemjs": "^6.15.1",
  214. "terser": "^5.39.0",
  215. "tslib": "^2.8.1",
  216. "typescript": "^5.8.3",
  217. "typescript-eslint": "^8.29.1",
  218. "vite": "^6.2.6",
  219. "vitepress": "^1.6.3",
  220. "vue": "^3.5.13",
  221. "vue-tsc": "^2.2.8",
  222. "wasm-pack": "^0.13.1",
  223. "yargs-parser": "^21.1.1"
  224. },
  225. "overrides": {
  226. "axios": "^1.8.4",
  227. "semver": "^7.7.1",
  228. "readable-stream": "npm:@built-in/readable-stream@1",
  229. "esbuild": ">0.24.2"
  230. },
  231. "comments": {
  232. "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
  233. },
  234. "files": [
  235. "dist/*.node",
  236. "dist/**/*.js",
  237. "dist/*.d.ts",
  238. "dist/bin/rollup",
  239. "dist/es/package.json"
  240. ],
  241. "engines": {
  242. "node": ">=18.0.0",
  243. "npm": ">=8.0.0"
  244. },
  245. "exports": {
  246. ".": {
  247. "types": "./dist/rollup.d.ts",
  248. "require": "./dist/rollup.js",
  249. "import": "./dist/es/rollup.js"
  250. },
  251. "./loadConfigFile": {
  252. "types": "./dist/loadConfigFile.d.ts",
  253. "require": "./dist/loadConfigFile.js",
  254. "default": "./dist/loadConfigFile.js"
  255. },
  256. "./getLogFilter": {
  257. "types": "./dist/getLogFilter.d.ts",
  258. "require": "./dist/getLogFilter.js",
  259. "import": "./dist/es/getLogFilter.js"
  260. },
  261. "./parseAst": {
  262. "types": "./dist/parseAst.d.ts",
  263. "require": "./dist/parseAst.js",
  264. "import": "./dist/es/parseAst.js"
  265. },
  266. "./dist/*": "./dist/*"
  267. }
  268. }