UNPKG

@wessberg/rollup-plugin-ts

Version:

A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc

186 lines (185 loc) 5.26 kB
{ "name": "@wessberg/rollup-plugin-ts", "version": "2.0.4", "description": "A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc", "scripts": { "generate:sandhog": "sandhog all --yes", "generate:changelog": "standard-changelog --first-release", "generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog", "clean": "rimraf dist", "lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color", "prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"", "test": "ava", "prebuild": "pnpm run clean", "build": "pnpm run prebuild && pnpm run rollup", "prewatch": "pnpm run clean", "watch": "pnpm run prewatch && pnpm run rollup -- --watch", "rollup": "ts-node rollup.config.ts", "preversion": "npm run lint && pnpm run build", "version": "pnpm run preversion && pnpm run generate:all && git add .", "release": "np --no-cleanup --no-yarn --no-tests", "update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod", "update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install" }, "keywords": [ "rollup", "typescript", "declaration", "declarations", "bundling", "merging", "treeshaking", "plugin", "babel", "browserslist" ], "files": [ "dist/**/*.*" ], "contributors": [ { "name": "Frederik Wessberg", "email": "frederikwessberg@hotmail.com", "url": "https://github.com/wessberg", "imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4", "github": "wessberg", "role": "Lead Developer", "twitter": "FredWessberg" } ], "license": "MIT", "devDependencies": { "@rollup/plugin-alias": "^3.1.8", "@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-multi-entry": "^4.1.0", "@types/babel__core": "^7.1.16", "@types/node": "^16.11.7", "@types/prettier": "^2.4.2", "@types/semver": "^7.3.9", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.4.0", "@wessberg/ts-config": "^1.1.3", "@babel/core": "7.16.0", "@babel/runtime": "7.16.3", "@babel/preset-env": "7.16.4", "@babel/plugin-transform-runtime": "7.16.4", "@swc/core": "1.2.110", "@swc/helpers": "0.2.14", "ava": "3.15.0", "babel-preset-minify": "^0.5.1", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsdoc": "^37.0.3", "fast-glob": "^3.2.7", "helpertypes": "^0.0.17", "husky": "^7.0.4", "memfs": "^3.3.0", "np": "7.5.0", "npm-check-updates": "12.0.2", "pnpm": "^6.22.2", "prettier": "^2.4.1", "pretty-quick": "^3.1.2", "rimraf": "^3.0.2", "rollup": "^2.60.0", "sandhog": "^1.0.43", "semver": "7.3.5", "standard-changelog": "^2.0.27", "ts-node": "10.4.0", "typescript": "^4.5.2", "typescript-3-4-1": "npm:typescript@3.4.1", "typescript-3-5-1": "npm:typescript@3.5.1", "typescript-3-6-2": "npm:typescript@3.6.2", "typescript-3-7-2": "npm:typescript@3.7.2", "typescript-3-8-3": "npm:typescript@3.8.3", "typescript-3-9-2": "npm:typescript@3.9.2", "typescript-4-0-3": "npm:typescript@4.0.3", "typescript-4-1-2": "npm:typescript@4.1.2", "typescript-4-2-4": "npm:typescript@4.2.4", "typescript-4-3-5": "npm:typescript@4.3.5", "typescript-4-4-2": "npm:typescript@4.4.2" }, "dependencies": { "@rollup/pluginutils": "^4.1.1", "@wessberg/stringutil": "^1.0.19", "browserslist": "^4.18.1", "browserslist-generator": "^1.0.65", "chalk": "^4.1.2", "compatfactory": "^0.0.12", "crosspath": "1.0.0", "magic-string": "^0.25.7", "ts-clone-node": "^0.3.29", "tslib": "^2.3.1" }, "peerDependencies": { "@babel/core": ">=6.x || >=7.x", "@babel/runtime": ">=6.x || >=7.x", "@babel/preset-env": ">=6.x || >=7.x", "@babel/plugin-transform-runtime": ">=6.x || >=7.x", "@swc/core": ">=1.x", "@swc/helpers": ">=0.2", "rollup": ">=1.x || >=2.x", "typescript": ">=3.2.x || >= 4.x" }, "peerDependenciesMeta": { "@babel/core": { "optional": true }, "@babel/runtime": { "optional": true }, "@babel/preset-env": { "optional": true }, "@babel/plugin-transform-runtime": { "optional": true }, "@swc/core": { "optional": true }, "@swc/helpers": { "optional": true } }, "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "browser": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "typings": "./dist/esm/index.d.ts", "es2015": "./dist/esm/index.js", "funding": { "type": "github", "url": "https://github.com/wessberg/rollup-plugin-ts?sponsor=1" }, "repository": { "type": "git", "url": "https://github.com/wessberg/rollup-plugin-ts.git" }, "bugs": { "url": "https://github.com/wessberg/rollup-plugin-ts/issues" }, "engines": { "node": ">=10.0.0", "npm": ">=7.0.0", "yarn": ">=1.13", "pnpm": ">=3.2.0" }, "ava": { "files": [ "test/**.test.ts" ], "verbose": true, "timeout": "400s", "extensions": [ "ts" ], "environmentVariables": { "NODE_OPTIONS": "--max_old_space_size=6144", "FORCE_COLOR": "3" }, "require": [ "ts-node/register/transpile-only" ] } }