diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 309dbff..960e815 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node: [14, 16] + node: [16, 18, 20] runs-on: ${{ matrix.os }} name: ${{ matrix.os }} / Node ${{ matrix.node }} steps: diff --git a/cli.js b/cli.js index 35c04c3..083e705 100644 --- a/cli.js +++ b/cli.js @@ -1,15 +1,15 @@ #!/usr/bin/env node -if (process.version.match(/^v(\d+)\./)[1] < 14) { - // Return silently to support hallmark in 'npm test' - console.error('Skipping hallmark: Node 14 or greater is required.') - process.exit(0) -} - import subarg from 'subarg' import fs from 'node:fs' import * as hallmark from './index.js' +if (process.version.match(/^v(\d+)\./)[1] < 16) { + // Return silently to support hallmark in 'npm test' + console.error('Skipping hallmark: Node 16 or greater is required.') + process.exit(0) +} + const argv = subarg(process.argv.slice(2), { boolean: ['fix', 'help', 'version', 'commits'], string: ['report'], diff --git a/package.json b/package.json index 847cd19..8f4b279 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,6 @@ "unified" ], "engines": { - "node": ">=14" + "node": ">=16" } }