Skip to content

Commit afd93a3

Browse files
committed
chore(multi-entry): update dependencies
BREAKING CHANGES: now requires at least Node 10
1 parent 5a2e4de commit afd93a3

File tree

4 files changed

+25
-123
lines changed

4 files changed

+25
-123
lines changed

packages/multi-entry/package.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
"homepage": "https://github.com/rollup/plugins/tree/master/packages/multi-entry/#readme",
1212
"bugs": "https://github.com/rollup/plugins/issues",
1313
"main": "dist/index.js",
14+
"module": "dist/index.es.js",
15+
"engines": {
16+
"node": ">=10.0.0"
17+
},
1418
"scripts": {
1519
"build": "rollup -c",
1620
"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov",
1721
"ci:lint": "pnpm run build && pnpm run lint",
1822
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
1923
"ci:test": "pnpm run test -- --verbose",
2024
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package",
21-
"lint:docs": "prettier --single-quote --write README.md",
25+
"lint:docs": "prettier --single-quote --arrow-parens avoid --write README.md",
2226
"lint:js": "eslint --fix --cache src test --ext .js,.ts",
2327
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package",
2428
"prebuild": "del-cli dist",
@@ -44,21 +48,20 @@
4448
"rollup": "^1.20.0 || ^2.0.0"
4549
},
4650
"dependencies": {
47-
"matched": "^1.0.2"
51+
"matched": "^5.0.0"
4852
},
4953
"devDependencies": {
50-
"@babel/core": "^7.9.0",
51-
"@babel/preset-env": "^7.9.0",
52-
"rollup": "^2.0.0",
53-
"rollup-plugin-babel": "^4.4.0"
54+
"rollup": "^2.23.0"
5455
},
5556
"ava": {
57+
"babel": {
58+
"compileEnhancements": false
59+
},
5660
"files": [
5761
"!**/fixtures/**",
5862
"!**/helpers/**",
5963
"!**/recipes/**",
6064
"!**/types.ts"
6165
]
62-
},
63-
"module": "dist/index.es.js"
66+
}
6467
}

packages/multi-entry/rollup.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
import babel from 'rollup-plugin-babel';
2-
31
const pkg = require('./package.json');
42

53
export default {
64
input: 'src/index.js',
7-
plugins: [
8-
babel({
9-
presets: [['@babel/env', { targets: { node: '8' }, modules: false }]],
10-
babelrc: false
11-
})
12-
],
135
external: Object.keys(pkg.dependencies),
146
output: [
15-
{ format: 'cjs', file: pkg.main },
7+
{ format: 'cjs', file: pkg.main, exports: 'auto' },
168
{ format: 'es', file: pkg.module }
179
]
1810
};

packages/multi-entry/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable consistent-return, no-param-reassign */
22

3-
import { promise as matched } from 'matched';
3+
import matched from 'matched';
44

55
const entry = '\0rollup:plugin-multi-entry:entry-point';
66

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)