From e6324695220a8e4c6e34e3537df32bf6a7814041 Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Tue, 28 Jul 2020 07:54:20 +0200 Subject: [PATCH] chore(node-resolve): update dependencies BREAKING CHANGES: now requires at least Node 10 --- packages/node-resolve/package.json | 24 +++++++++++++----------- packages/node-resolve/rollup.config.js | 17 +---------------- pnpm-lock.yaml | 8 ++++---- 3 files changed, 18 insertions(+), 31 deletions(-) diff --git a/packages/node-resolve/package.json b/packages/node-resolve/package.json index 3e6f4fed6..5bd97a8fe 100644 --- a/packages/node-resolve/package.json +++ b/packages/node-resolve/package.json @@ -11,8 +11,9 @@ "homepage": "https://github.com/rollup/plugins/tree/master/packages/node-resolve/#readme", "bugs": "https://github.com/rollup/plugins/issues", "main": "./dist/cjs/index.js", + "module": "./dist/es/index.js", "engines": { - "node": ">= 8.0.0" + "node": ">= 10.0.0" }, "scripts": { "build": "rollup -c", @@ -21,7 +22,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm run test -- --verbose && pnpm run test:ts", "lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package", - "lint:docs": "prettier --single-quote --write README.md", + "lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md", "lint:js": "eslint --fix --cache src test types --ext .js,.ts", "lint:package": "prettier --write package.json --plugin=prettier-plugin-package", "prebuild": "del-cli dist", @@ -57,18 +58,21 @@ "resolve": "^1.17.0" }, "devDependencies": { - "@babel/core": "^7.10.4", - "@babel/plugin-transform-typescript": "^7.10.4", - "@babel/preset-env": "^7.10.4", - "@rollup/plugin-babel": "^5.0.4", - "@rollup/plugin-commonjs": "^13.0.0", + "@babel/core": "^7.10.5", + "@babel/plugin-transform-typescript": "^7.10.5", + "@rollup/plugin-babel": "^5.1.0", + "@rollup/plugin-commonjs": "^14.0.0", "@rollup/plugin-json": "^4.1.0", "es5-ext": "^0.10.53", - "rollup": "^2.12.0", + "rollup": "^2.23.0", "source-map": "^0.7.3", "string-capitalize": "^1.0.1" }, + "types": "types/index.d.ts", "ava": { + "babel": { + "compileEnhancements": false + }, "files": [ "!**/fixtures/**", "!**/helpers/**", @@ -80,7 +84,5 @@ "require": "./dist/cjs/index.js", "import": "./dist/es/index.js" }, - "module": "./dist/es/index.js", - "type": "commonjs", - "types": "types/index.d.ts" + "type": "commonjs" } diff --git a/packages/node-resolve/rollup.config.js b/packages/node-resolve/rollup.config.js index be91d84e7..dcfae1399 100755 --- a/packages/node-resolve/rollup.config.js +++ b/packages/node-resolve/rollup.config.js @@ -1,4 +1,3 @@ -import babel from 'rollup-plugin-babel'; import json from '@rollup/plugin-json'; import { emitModulePackageFile } from '../../shared/rollup.config'; @@ -7,21 +6,7 @@ import pkg from './package.json'; export default { input: 'src/index.js', - plugins: [ - json(), - babel({ - presets: [ - [ - '@babel/preset-env', - { - targets: { - node: 6 - } - } - ] - ] - }) - ], + plugins: [json()], external: Object.keys(pkg.dependencies).concat(['fs', 'path', 'os', 'util']), output: [ { file: pkg.main, format: 'cjs', exports: 'named' }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c5025580..26565b985 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -300,7 +300,7 @@ importers: '@babel/plugin-transform-typescript': 7.10.5_@babel+core@7.10.5 '@babel/preset-env': 7.10.4_@babel+core@7.10.5 '@rollup/plugin-babel': 5.1.0_@babel+core@7.10.5+rollup@2.23.0 - '@rollup/plugin-commonjs': 13.0.2_rollup@2.23.0 + '@rollup/plugin-commonjs': 14.0.0_rollup@2.23.0 '@rollup/plugin-json': 4.1.0_rollup@2.23.0 es5-ext: 0.10.53 rollup: 2.23.0 @@ -311,7 +311,7 @@ importers: '@babel/plugin-transform-typescript': ^7.10.5 '@babel/preset-env': ^7.10.4 '@rollup/plugin-babel': ^5.1.0 - '@rollup/plugin-commonjs': ^13.0.2 + '@rollup/plugin-commonjs': ^14.0.0 '@rollup/plugin-json': ^4.1.0 '@rollup/pluginutils': ^3.1.0 '@types/resolve': 1.17.1 @@ -1609,7 +1609,7 @@ packages: rollup: ^1.20.0||^2.0.0 resolution: integrity: sha512-Ycr12N3ZPN96Fw2STurD21jMqzKwL9QuFhms3SD7KKRK7oaXUsBU9Zt0jL/rOPHiPYisI21/rXGO3jr9BnLHUA== - /@rollup/plugin-commonjs/13.0.2_rollup@2.23.0: + /@rollup/plugin-commonjs/14.0.0_rollup@2.23.0: dependencies: '@rollup/pluginutils': 3.1.0_rollup@2.23.0 commondir: 1.0.1 @@ -1625,7 +1625,7 @@ packages: peerDependencies: rollup: ^2.3.4 resolution: - integrity: sha512-9JXf2k8xqvMYfqmhgtB6eCgMN9fbxwF1XDF3mGKJc6pkAmt0jnsqurxQ0tC1akQKNSXCm7c3unQxa3zuxtZ7mQ== + integrity: sha512-+PSmD9ePwTAeU106i9FRdc+Zb3XUWyW26mo5Atr2mk82hor8+nPwkztEjFo8/B1fJKfaQDg9aM2bzQkjhi7zOw== /@rollup/plugin-json/4.1.0_rollup@2.23.0: dependencies: '@rollup/pluginutils': 3.1.0_rollup@2.23.0