[d565449] | 1 | {
|
---|
| 2 | "name": "rollup",
|
---|
[0c6b92a] | 3 | "version": "4.27.4",
|
---|
[d565449] | 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",
|
---|
[0c6b92a] | 22 | "aarch64-unknown-freebsd",
|
---|
[d565449] | 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",
|
---|
[0c6b92a] | 34 | "x86_64-unknown-freebsd",
|
---|
[d565449] | 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",
|
---|
[0c6b92a] | 112 | "@rollup/rollup-darwin-arm64": "4.27.4",
|
---|
| 113 | "@rollup/rollup-android-arm64": "4.27.4",
|
---|
| 114 | "@rollup/rollup-win32-arm64-msvc": "4.27.4",
|
---|
| 115 | "@rollup/rollup-freebsd-arm64": "4.27.4",
|
---|
| 116 | "@rollup/rollup-linux-arm64-gnu": "4.27.4",
|
---|
| 117 | "@rollup/rollup-linux-arm64-musl": "4.27.4",
|
---|
| 118 | "@rollup/rollup-android-arm-eabi": "4.27.4",
|
---|
| 119 | "@rollup/rollup-linux-arm-gnueabihf": "4.27.4",
|
---|
| 120 | "@rollup/rollup-linux-arm-musleabihf": "4.27.4",
|
---|
| 121 | "@rollup/rollup-win32-ia32-msvc": "4.27.4",
|
---|
| 122 | "@rollup/rollup-linux-riscv64-gnu": "4.27.4",
|
---|
| 123 | "@rollup/rollup-linux-powerpc64le-gnu": "4.27.4",
|
---|
| 124 | "@rollup/rollup-linux-s390x-gnu": "4.27.4",
|
---|
| 125 | "@rollup/rollup-darwin-x64": "4.27.4",
|
---|
| 126 | "@rollup/rollup-win32-x64-msvc": "4.27.4",
|
---|
| 127 | "@rollup/rollup-freebsd-x64": "4.27.4",
|
---|
| 128 | "@rollup/rollup-linux-x64-gnu": "4.27.4",
|
---|
| 129 | "@rollup/rollup-linux-x64-musl": "4.27.4"
|
---|
[d565449] | 130 | },
|
---|
| 131 | "dependencies": {
|
---|
[0c6b92a] | 132 | "@types/estree": "1.0.6"
|
---|
[d565449] | 133 | },
|
---|
| 134 | "devDependenciesComments": {
|
---|
| 135 | "core-js": "We only update manually as every update requires a snapshot update"
|
---|
| 136 | },
|
---|
| 137 | "devDependencies": {
|
---|
[0c6b92a] | 138 | "@codemirror/commands": "^6.7.1",
|
---|
[d565449] | 139 | "@codemirror/lang-javascript": "^6.2.2",
|
---|
[0c6b92a] | 140 | "@codemirror/language": "^6.10.3",
|
---|
| 141 | "@codemirror/search": "^6.5.7",
|
---|
[d565449] | 142 | "@codemirror/state": "^6.4.1",
|
---|
[0c6b92a] | 143 | "@codemirror/view": "^6.34.3",
|
---|
| 144 | "@eslint/js": "^9.15.0",
|
---|
| 145 | "@inquirer/prompts": "^7.1.0",
|
---|
[d565449] | 146 | "@jridgewell/sourcemap-codec": "^1.5.0",
|
---|
[0c6b92a] | 147 | "@mermaid-js/mermaid-cli": "^11.4.0",
|
---|
[d565449] | 148 | "@napi-rs/cli": "^2.18.4",
|
---|
[0c6b92a] | 149 | "@rollup/plugin-alias": "^5.1.1",
|
---|
[d565449] | 150 | "@rollup/plugin-buble": "^1.0.3",
|
---|
[0c6b92a] | 151 | "@rollup/plugin-commonjs": "^28.0.1",
|
---|
[d565449] | 152 | "@rollup/plugin-json": "^6.1.0",
|
---|
[0c6b92a] | 153 | "@rollup/plugin-node-resolve": "^15.3.0",
|
---|
| 154 | "@rollup/plugin-replace": "^6.0.1",
|
---|
[d565449] | 155 | "@rollup/plugin-terser": "^0.4.4",
|
---|
[0c6b92a] | 156 | "@rollup/plugin-typescript": "^12.1.1",
|
---|
| 157 | "@rollup/pluginutils": "^5.1.3",
|
---|
| 158 | "@shikijs/vitepress-twoslash": "^1.23.1",
|
---|
| 159 | "@types/mocha": "^10.0.9",
|
---|
| 160 | "@types/node": "^18.19.64",
|
---|
[d565449] | 161 | "@types/semver": "^7.5.8",
|
---|
| 162 | "@types/yargs-parser": "^21.0.3",
|
---|
[0c6b92a] | 163 | "@vue/language-server": "^2.1.10",
|
---|
| 164 | "acorn": "^8.14.0",
|
---|
[d565449] | 165 | "acorn-import-assertions": "^1.9.0",
|
---|
[0c6b92a] | 166 | "acorn-jsx": "^5.3.2",
|
---|
[d565449] | 167 | "buble": "^0.20.0",
|
---|
| 168 | "builtin-modules": "^4.0.0",
|
---|
| 169 | "chokidar": "^3.6.0",
|
---|
| 170 | "colorette": "^2.0.20",
|
---|
[0c6b92a] | 171 | "concurrently": "^9.1.0",
|
---|
| 172 | "core-js": "3.38.1",
|
---|
[d565449] | 173 | "cross-env": "^7.0.3",
|
---|
| 174 | "date-time": "^4.0.0",
|
---|
| 175 | "es5-shim": "^4.6.7",
|
---|
| 176 | "es6-shim": "^0.35.8",
|
---|
[0c6b92a] | 177 | "eslint": "^9.15.0",
|
---|
[d565449] | 178 | "eslint-config-prettier": "^9.1.0",
|
---|
| 179 | "eslint-plugin-prettier": "^5.2.1",
|
---|
[0c6b92a] | 180 | "eslint-plugin-unicorn": "^56.0.0",
|
---|
| 181 | "eslint-plugin-vue": "^9.31.0",
|
---|
[d565449] | 182 | "fixturify": "^3.0.0",
|
---|
| 183 | "flru": "^1.0.2",
|
---|
| 184 | "fs-extra": "^11.2.0",
|
---|
| 185 | "github-api": "^3.4.0",
|
---|
[0c6b92a] | 186 | "globals": "^15.12.0",
|
---|
| 187 | "husky": "^9.1.7",
|
---|
| 188 | "is-reference": "^3.0.3",
|
---|
| 189 | "lint-staged": "^15.2.10",
|
---|
[d565449] | 190 | "locate-character": "^3.0.0",
|
---|
[0c6b92a] | 191 | "magic-string": "^0.30.13",
|
---|
| 192 | "mocha": "^10.8.2",
|
---|
| 193 | "nodemon": "^3.1.7",
|
---|
[d565449] | 194 | "npm-audit-resolver": "^3.0.0-RC.0",
|
---|
[0c6b92a] | 195 | "nyc": "^17.1.0",
|
---|
| 196 | "pinia": "^2.2.6",
|
---|
[d565449] | 197 | "prettier": "^3.3.3",
|
---|
[0c6b92a] | 198 | "prettier-plugin-organize-imports": "^4.1.0",
|
---|
[d565449] | 199 | "pretty-bytes": "^6.1.1",
|
---|
[0c6b92a] | 200 | "pretty-ms": "^9.2.0",
|
---|
[d565449] | 201 | "requirejs": "^2.3.7",
|
---|
[0c6b92a] | 202 | "rollup": "^4.27.3",
|
---|
| 203 | "rollup-plugin-license": "^3.5.3",
|
---|
[d565449] | 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",
|
---|
[0c6b92a] | 211 | "terser": "^5.36.0",
|
---|
| 212 | "tslib": "^2.8.1",
|
---|
| 213 | "typescript": "^5.6.3",
|
---|
| 214 | "typescript-eslint": "^8.15.0",
|
---|
| 215 | "vite": "^5.4.11",
|
---|
| 216 | "vitepress": "^1.5.0",
|
---|
| 217 | "vue": "^3.5.13",
|
---|
| 218 | "vue-tsc": "^2.1.10",
|
---|
| 219 | "wasm-pack": "^0.13.1",
|
---|
[d565449] | 220 | "yargs-parser": "^21.1.1"
|
---|
| 221 | },
|
---|
| 222 | "overrides": {
|
---|
[0c6b92a] | 223 | "axios": "^1.7.7",
|
---|
[d565449] | 224 | "semver": "^7.6.3",
|
---|
| 225 | "ws": "^8.18.0"
|
---|
| 226 | },
|
---|
[0c6b92a] | 227 | "comments": {
|
---|
| 228 | "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges",
|
---|
[d565449] | 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 | } |
---|