Skip to content

Commit e632469

Browse files
committed
chore(node-resolve): update dependencies
BREAKING CHANGES: now requires at least Node 10
1 parent afd93a3 commit e632469

File tree

3 files changed

+18
-31
lines changed

3 files changed

+18
-31
lines changed

Diff for: packages/node-resolve/package.json

+13-11
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"homepage": "https://github.com/rollup/plugins/tree/master/packages/node-resolve/#readme",
1212
"bugs": "https://github.com/rollup/plugins/issues",
1313
"main": "./dist/cjs/index.js",
14+
"module": "./dist/es/index.js",
1415
"engines": {
15-
"node": ">= 8.0.0"
16+
"node": ">= 10.0.0"
1617
},
1718
"scripts": {
1819
"build": "rollup -c",
@@ -21,7 +22,7 @@
2122
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2223
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts",
2324
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
24-
"lint:docs": "prettier --single-quote --write README.md",
25+
"lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md",
2526
"lint:js": "eslint --fix --cache src test types --ext .js,.ts",
2627
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2728
"prebuild": "del-cli dist",
@@ -57,18 +58,21 @@
5758
"resolve": "^1.17.0"
5859
},
5960
"devDependencies": {
60-
"@babel/core": "^7.10.4",
61-
"@babel/plugin-transform-typescript": "^7.10.4",
62-
"@babel/preset-env": "^7.10.4",
63-
"@rollup/plugin-babel": "^5.0.4",
64-
"@rollup/plugin-commonjs": "^13.0.0",
61+
"@babel/core": "^7.10.5",
62+
"@babel/plugin-transform-typescript": "^7.10.5",
63+
"@rollup/plugin-babel": "^5.1.0",
64+
"@rollup/plugin-commonjs": "^14.0.0",
6565
"@rollup/plugin-json": "^4.1.0",
6666
"es5-ext": "^0.10.53",
67-
"rollup": "^2.12.0",
67+
"rollup": "^2.23.0",
6868
"source-map": "^0.7.3",
6969
"string-capitalize": "^1.0.1"
7070
},
71+
"types": "types/index.d.ts",
7172
"ava": {
73+
"babel": {
74+
"compileEnhancements": false
75+
},
7276
"files": [
7377
"!**/fixtures/**",
7478
"!**/helpers/**",
@@ -80,7 +84,5 @@
8084
"require": "./dist/cjs/index.js",
8185
"import": "./dist/es/index.js"
8286
},
83-
"module": "./dist/es/index.js",
84-
"type": "commonjs",
85-
"types": "types/index.d.ts"
87+
"type": "commonjs"
8688
}

Diff for: packages/node-resolve/rollup.config.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import babel from 'rollup-plugin-babel';
21
import json from '@rollup/plugin-json';
32

43
import { emitModulePackageFile } from '../../shared/rollup.config';
@@ -7,21 +6,7 @@ import pkg from './package.json';
76

87
export default {
98
input: 'src/index.js',
10-
plugins: [
11-
json(),
12-
babel({
13-
presets: [
14-
[
15-
'@babel/preset-env',
16-
{
17-
targets: {
18-
node: 6
19-
}
20-
}
21-
]
22-
]
23-
})
24-
],
9+
plugins: [json()],
2510
external: Object.keys(pkg.dependencies).concat(['fs', 'path', 'os', 'util']),
2611
output: [
2712
{ file: pkg.main, format: 'cjs', exports: 'named' },

Diff for: pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)