From 0de997c01003e6c61e019d2ae6a211ef909e03ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E?= <1395348685z@gmail.com> Date: Thu, 26 Aug 2021 00:05:09 +0800 Subject: [PATCH] Replace @rollup/plugin-typescript (#131) --- package-lock.json | 43 ------------------------------------------- package.json | 3 +-- 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f335b1..aca1691 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@babel/runtime": "^7.15.0", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.0.4", - "@rollup/plugin-typescript": "^8.2.5", "@types/jest": "^27.0.0", "@types/web": "^0.0.24", "@typescript-eslint/eslint-plugin": "^4.4.1", @@ -2772,24 +2771,6 @@ "rollup": "^2.42.0" } }, - "node_modules/@rollup/plugin-typescript": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-8.2.5.tgz", - "integrity": "sha512-QL/LvDol/PAGB2O0S7/+q2HpSUNodpw7z6nGn9BfoVCPOZ0r4EALrojFU29Bkoi2Hr2jgTocTejJ5GGWZfOxbQ==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "resolve": "^1.17.0" - }, - "engines": { - "node": ">=8.0.0" - }, - "peerDependencies": { - "rollup": "^2.14.0", - "tslib": "*", - "typescript": ">=3.7.0" - } - }, "node_modules/@rollup/pluginutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", @@ -11113,13 +11094,6 @@ "node": ">=4" } }, - "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "peer": true - }, "node_modules/tsutils": { "version": "3.21.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", @@ -13646,16 +13620,6 @@ "resolve": "^1.19.0" } }, - "@rollup/plugin-typescript": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-8.2.5.tgz", - "integrity": "sha512-QL/LvDol/PAGB2O0S7/+q2HpSUNodpw7z6nGn9BfoVCPOZ0r4EALrojFU29Bkoi2Hr2jgTocTejJ5GGWZfOxbQ==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^3.1.0", - "resolve": "^1.17.0" - } - }, "@rollup/pluginutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", @@ -20041,13 +20005,6 @@ } } }, - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "peer": true - }, "tsutils": { "version": "3.21.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", diff --git a/package.json b/package.json index cee43d0..6761aa4 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "@babel/runtime": "^7.15.0", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.0.4", - "@rollup/plugin-typescript": "^8.2.5", "@types/jest": "^27.0.0", "@types/web": "^0.0.24", "@typescript-eslint/eslint-plugin": "^4.4.1", @@ -74,7 +73,7 @@ }, "scripts": { "lint": "eslint .", - "build": "rollup --config rollup.config.ts --configPlugin typescript", + "build": "rollup --config rollup.config.ts --configPlugin babel={extensions:[\\\".ts\\\"],babelHelpers:\\\"runtime\\\"}", "test": "jest", "coverage": "jest --coverage", "prepare": "npm run build"