Skip to content

Commit

Permalink
Bump dependencies and require Node.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Jun 10, 2023
1 parent 98816ab commit 5553394
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 47 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
- 14
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: git --version
Expand Down
6 changes: 6 additions & 0 deletions .xo-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pretter": true,
"rules": {
"ava/no-ignored-test-files": "off"
}
}
37 changes: 9 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"exports": "./distribution/source/index.js",
"types": "distribution/source",
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^14.18.0 || ^16.14.0 || >=18.0.0"
},
"files": [
"distribution/source"
Expand All @@ -19,34 +19,15 @@
"repository": "[email protected]:LitoMore/releaz.git",
"license": "MIT",
"dependencies": {
"execa": "^6.0.0"
"execa": "^7.1.1"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@sindresorhus/tsconfig": "^2.0.0",
"@types/node": "^17.0.4",
"ava": "^3.15.0",
"c8": "^7.10.0",
"del-cli": "^4.0.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.4",
"xo": "^0.47.0"
},
"ava": {
"files": [
"test/test.ts"
],
"extensions": {
"ts": "module"
},
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"nodeArguments": [
"--loader=ts-node/esm"
]
},
"xo": {
"prettier": true
"@sindresorhus/tsconfig": "^3.0.1",
"@types/node": "^20.2.5",
"ava": "^5.3.0",
"c8": "^7.14.0",
"del-cli": "^5.0.0",
"typescript": "^5.1.3",
"xo": "^0.54.2"
}
}
4 changes: 0 additions & 4 deletions test/fixture/expected.txt

This file was deleted.

18 changes: 7 additions & 11 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import fs from 'node:fs';
import url from 'node:url';
import path from 'node:path';
import test from 'ava';
import releaz from '../source/index.js';

console.log(import.meta.url);
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));

test('test range and format options', async (t) => {
const expected = fs.readFileSync(
path.join(__dirname, 'fixture/expected.txt'),
'utf8',
);
test('test range and format options', async t => {
const expected = [
'9077124 LitoMore Ignore unused files',
'54d3a04 LitoMore 0.1.0',
'a3eb940 LitoMore Initial commit',
'6485437 LitoMore Initial commit',
].join('\n');

const actual = await releaz({
range: '9077124',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@sindresorhus/tsconfig",
"module": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"compilerOptions": {
"esModuleInterop": true,
Expand Down

0 comments on commit 5553394

Please sign in to comment.