Skip to content

Commit e567344

Browse files
committed
chore: update workflows & configs
1 parent d45b634 commit e567344

File tree

6 files changed

+43
-26
lines changed

6 files changed

+43
-26
lines changed

.github/workflows/quality-checks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ on:
1414
- .github/workflows/**.yml
1515

1616
jobs:
17+
checks:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version-file: ".nvmrc"
24+
25+
- name: install dependencies
26+
run: |
27+
npm install --silent
28+
29+
- name: typecheck
30+
run: |
31+
npm run typecheck
32+
33+
- name: test
34+
run: |
35+
npm test
36+
1737
fmt:
1838
runs-on: ubuntu-latest
1939
steps:

.github/workflows/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: release-please
22

33
on:
4+
push:
5+
branches:
6+
- master
47
workflow_run:
58
workflows:
69
- "quality checks"

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.18
1+
v22

dprint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"importDeclaration.forceMultiLine": "whenMultiple"
1818
},
1919
"includes": [
20-
"**/*.{ts,js,json,md,yml,yaml}"
20+
"**/*.{ts,mts,json,md,yml,yaml}"
2121
],
2222
"excludes": [
2323
"**/node_modules",

package-lock.json

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,40 @@
44
"license": "Apache-2.0",
55
"funding": "https://github.com/sponsors/xseman",
66
"homepage": "https://github.com/xseman/log4js-layout-json#readme",
7-
"description": "json layout module for log4js",
7+
"description": "Log4js json layout module",
88
"author": "Filip Seman <filip.seman@pm.me>",
99
"repository": {
1010
"type": "git",
1111
"url": "git+https://github.com/xseman/log4js-layout-json.git"
1212
},
1313
"scripts": {
1414
"build": "tsc",
15-
"pretest": "tsc",
16-
"typecheck": "tsc --noEmit",
1715
"fmt": "dprint fmt",
18-
"fmt:check": "dprint check"
16+
"fmt:check": "dprint check",
17+
"typecheck": "tsc --noEmit",
18+
"pretest": "tsc",
19+
"test": "TS_NODE_TRANSPILE_ONLY=true node --no-warnings --test --experimental-test-coverage --test-reporter=spec --loader=ts-node/esm *.test.mts",
20+
"test:watch": "TS_NODE_TRANSPILE_ONLY=true node --no-warnings --test --test-reporter=spec --watch --loader=ts-node/esm *.test.mts"
21+
},
22+
"peerDependencies": {
23+
"log4js": ">=6"
1924
},
2025
"dependencies": {},
2126
"devDependencies": {
2227
"@types/node": "^22.7.0",
2328
"dprint": "^0.47.0",
2429
"ts-node": "~10.9.0",
25-
"typescript": "^5.6.0"
26-
},
27-
"peerDependencies": {
28-
"log4js": ">=6"
30+
"typescript": "^5.7.0"
2931
},
3032
"types": "./dist/index.d.ts",
31-
"files": [
32-
"dist",
33-
"!dist/*.test.*"
34-
],
3533
"exports": {
3634
".": {
3735
"import": "./dist/index.js",
3836
"require": "./dist/index.js"
3937
}
4038
},
41-
"engines": {
42-
"node": ">=18.18",
43-
"npm": ">=7"
44-
}
39+
"files": [
40+
"dist",
41+
"!dist/*.test.*"
42+
]
4543
}

0 commit comments

Comments
 (0)