UNPKG

rollup-plugin-node-externals

Version:

Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup/Vite config

94 lines (93 loc) 2.45 kB
{ "name": "rollup-plugin-node-externals", "version": "8.1.0", "description": "Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup/Vite config", "author": "Stephan Schreiber <septh@sfr.fr>", "contributors": [ "Tomer Aberbach <tomeraberbach@gmail.com>", "Elad Ossadon <eossadon@lyft.com>" ], "keywords": [ "rollup", "vite", "plugin", "rollup-plugin", "vite-plugin", "external", "externals", "node", "builtin", "builtins", "dependencies", "devDependencies", "peerDependencies", "optionalDependencies", "modules", "monorepo" ], "homepage": "https://github.com/Septh/rollup-plugin-node-externals#readme", "repository": { "type": "git", "url": "https://github.com/Septh/rollup-plugin-node-externals" }, "funding": [ { "type": "patreon", "url": "https://patreon.com/Septh" }, { "type": "paypal", "url": "https://paypal.me/septh07" } ], "license": "MIT", "type": "module", "engines": { "node": ">= 21 || ^20.6.0 || ^18.19.0" }, "files": [ "dist", "!dist/**/*.map" ], "types": "./dist/index.d.ts", "exports": "./dist/index.js", "imports": { "#package.json": "./package.json" }, "scripts": { "build": "tsc -p tsconfig.build.json", "build:dts": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --removeComments false", "watch": "tsc -p tsconfig.build.json -w", "test": "ava", "lint": "eslint source/index.ts", "clean": "tsc -b tsconfig.build.json --declaration --clean", "prepublishOnly": "npm run lint && npm run clean && npm run build && npm run build:dts" }, "devDependencies": { "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.17.0", "@fast-check/ava": "^2.0.1", "@septh/ts-run": "^2.0.0", "@types/node": "^20.17.10", "@typescript-eslint/eslint-plugin": "^8.18.0", "@typescript-eslint/parser": "^8.18.0", "ava": "^6.2.0", "eslint": "^9.17.0", "fast-check": "^4.2.0", "rollup": "^4.28.1", "tslib": "^2.8.1", "typescript": "^5.7.2" }, "peerDependencies": { "rollup": "^4.0.0" }, "ava": { "workerThreads": false, "extensions": { "ts": "module" }, "nodeArguments": [ "--import=@septh/ts-run" ] } }