Skip to content

Commit b79dc40

Browse files
committed
fix(beep): prepare for Rollup 3 (rollup#1304)
BREAKING CHANGES: Requires Node 14
1 parent 0e6cfe1 commit b79dc40

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

packages/beep/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
## Requirements
1515

16-
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
16+
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+.
1717

1818
## Install
1919

packages/beep/package.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
"bugs": "https://github.com/rollup/plugins/issues",
1616
"main": "lib/index.js",
1717
"engines": {
18-
"node": ">= 8.0.0"
18+
"node": ">=14.0.0"
1919
},
2020
"scripts": {
2121
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
2222
"ci:lint": "pnpm lint",
2323
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
2424
"ci:test": "ava --verbose",
25+
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",
2526
"test": "ava"
2627
},
2728
"files": [
@@ -36,17 +37,19 @@
3637
"rollup"
3738
],
3839
"peerDependencies": {
39-
"rollup": "^1.20.0||^2.0.0"
40+
"rollup": "^1.20.0||^2.0.0||^3.0.0"
41+
},
42+
"peerDependenciesMeta": {
43+
"rollup": {
44+
"optional": true
45+
}
4046
},
4147
"devDependencies": {
42-
"rollup": "^2.67.3",
43-
"strip-ansi": "^6.0.0"
48+
"rollup": "^3.0.0-7",
49+
"strip-ansi": "^7.0.1"
4450
},
4551
"types": "types/index.d.ts",
4652
"ava": {
47-
"babel": {
48-
"compileEnhancements": false
49-
},
5053
"files": [
5154
"!**/fixtures/**",
5255
"!**/helpers/**",

packages/beep/test/snapshots/test.js.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The actual snapshot is saved in `test.js.snap`.
44

5-
Generated by [AVA](https://ava.li).
5+
Generated by [AVA](https://avajs.dev).
66

77
## pass
88

26 Bytes
Binary file not shown.

packages/beep/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const test = require('ava');
22
const execa = require('execa');
3-
const strip = require('strip-ansi');
43

54
const options = { cwd: __dirname };
65

76
test('pass', async (t) => {
87
const args = '--config fixtures/pass.config.js'.split(' ');
98
const { stderr } = await execa('rollup', args, options);
9+
const { default: strip } = await import('strip-ansi');
1010

1111
t.snapshot(strip(stderr.replace(/\d+ms/, '<time>ms')));
1212
});

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)