diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac1c935..9b26eee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: node: - - lts/dubnium + - lts/erbium - node windows: name: ${{matrix.node}} diff --git a/lib/index.js b/lib/index.js index 1d8808b..84d7315 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,6 +1,6 @@ /** * @typedef {import('unified-engine').Options} EngineOptions - * @typedef {import('unified-engine/lib/index.js').Context} EngineContext + * @typedef {import('unified-engine').Context} EngineContext * @typedef {import('unified-engine').Callback} EngineCallback * @typedef {import('./options.js').Options} Options */ diff --git a/package.json b/package.json index 9d9ad71..c1a8efe 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "bail": "^2.0.0", "c8": "^7.0.0", "execa": "^5.0.0", - "figures": "^4.0.0", "prettier": "^2.0.0", "remark": "^13.0.0", "remark-cli": "^9.0.0", diff --git a/test/index.js b/test/index.js index f9d402f..f56ac62 100644 --- a/test/index.js +++ b/test/index.js @@ -4,9 +4,10 @@ import execa from 'execa' import {bail} from 'bail' import test from 'tape' import strip from 'strip-ansi' -import figures from 'figures' import touch from 'touch' +const cross = process.platform === 'win32' ? '×' : '✖' + const fixtures = path.join('test', 'fixtures') const cwd = path.join(fixtures, 'example') const bin = path.join(cwd, 'cli.js') @@ -19,7 +20,7 @@ test('unified-args', (t) => { 'missing.txt', ' 1:1 error No such file or directory', '', - figures.cross + ' 1 error' + cross + ' 1 error' ].join('\n') t.plan(1) @@ -595,7 +596,7 @@ test('unified-args', (t) => { '', 'two.txt: no issues found', '', - figures.cross + ' 1 error' + cross + ' 1 error' ].join('\n') t.plan(1)