Skip to content

Commit

Permalink
fix(beep): prepare for Rollup 3
Browse files Browse the repository at this point in the history
BREAKING CHANGES: Requires Node 14
  • Loading branch information
lukastaegert committed Oct 8, 2022
1 parent 0e6cfe1 commit 7fbc455
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/beep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Requirements

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

## Install

Expand Down
16 changes: 9 additions & 7 deletions packages/beep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"bugs": "https://github.com/rollup/plugins/issues",
"main": "lib/index.js",
"engines": {
"node": ">= 8.0.0"
"node": ">=14.0.0"
},
"scripts": {
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
Expand All @@ -36,17 +36,19 @@
"rollup"
],
"peerDependencies": {
"rollup": "^1.20.0||^2.0.0"
"rollup": "^1.20.0||^2.0.0||^3.0.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"devDependencies": {
"rollup": "^2.67.3",
"strip-ansi": "^6.0.0"
"rollup": "^3.0.0-7",
"strip-ansi": "^7.0.1"
},
"types": "types/index.d.ts",
"ava": {
"babel": {
"compileEnhancements": false
},
"files": [
"!**/fixtures/**",
"!**/helpers/**",
Expand Down
2 changes: 1 addition & 1 deletion packages/beep/test/snapshots/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

Generated by [AVA](https://ava.li).
Generated by [AVA](https://avajs.dev).

## pass

Expand Down
Binary file modified packages/beep/test/snapshots/test.js.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/beep/test/test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const test = require('ava');
const execa = require('execa');
const strip = require('strip-ansi');

const options = { cwd: __dirname };

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

t.snapshot(strip(stderr.replace(/\d+ms/, '<time>ms')));
});
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7fbc455

Please sign in to comment.