Skip to content

Commit 37be565

Browse files
authored
chore: fix os workflow matriX (#42)
1 parent 3093a25 commit 37be565

File tree

9 files changed

+81
-67
lines changed

9 files changed

+81
-67
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-latest
109
strategy:
1110
matrix:
1211
os: [ubuntu-latest, macOS-latest, windows-latest]
13-
node-version: [18.x, 20.x]
12+
node-version: [18, 20]
13+
runs-on: ${{ matrix.os }}
14+
1415
steps:
1516
- uses: actions/checkout@v4
1617

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-lock=false
2+
save-exact=true

.prettierrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.prettierrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"singleQuote": false,
3+
"trailingComma": "all",
4+
"useTabs": true,
5+
"printWidth": 120,
6+
"overrides": [
7+
{
8+
"files": ["*.yml", "*.json"],
9+
"options": {
10+
"tabWidth": 2,
11+
"useTabs": false
12+
}
13+
}
14+
]
15+
}

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import prettierConfig from "eslint-config-prettier";
2+
import prettierPlugin from "eslint-plugin-prettier/recommended";
3+
import globals from "globals";
4+
import js from "@eslint/js";
5+
6+
export default [
7+
js.configs.recommended,
8+
prettierConfig,
9+
prettierPlugin,
10+
{
11+
languageOptions: {
12+
globals: {
13+
...globals.node,
14+
...globals.browser,
15+
global: true,
16+
},
17+
},
18+
},
19+
{
20+
ignores: ["coverage/*", "dist/*"],
21+
},
22+
];

package.json

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
{
2-
"name": "@metrics/emitter",
3-
"version": "1.0.0",
4-
"description": "Emitter for pushing a metric stream over misc network protocols to a daemon.",
5-
"main": "lib/emitter.js",
6-
"scripts": {
7-
"test": "tap test/*.js --disable-coverage --allow-empty-coverage",
8-
"test:coverage": "tap test/*.js",
9-
"lint": "eslint .",
10-
"lint:fix": "eslint . --fix"
11-
},
12-
"repository": {
13-
"type": "git",
14-
"url": "git+https://github.com/metrics-js/emitter.git"
15-
},
16-
"author": "Trygve Lie",
17-
"license": "MIT",
18-
"bugs": {
19-
"url": "https://github.com/metrics-js/emitter/issues"
20-
},
21-
"homepage": "https://github.com/metrics-js/emitter#readme",
22-
"dependencies": {
23-
"readable-stream": "^3.4.0"
24-
},
25-
"devDependencies": {
26-
"@metrics/client": "2.5.2",
27-
"@semantic-release/changelog": "6.0.3",
28-
"@semantic-release/commit-analyzer": "11.1.0",
29-
"@semantic-release/git": "10.0.1",
30-
"@semantic-release/github": "9.2.6",
31-
"@semantic-release/npm": "11.0.3",
32-
"@semantic-release/release-notes-generator": "12.1.0",
33-
"eslint": "8.57.0",
34-
"eslint-config-prettier": "9.1.0",
35-
"eslint-plugin-prettier": "5.1.3",
36-
"prettier": "3.3.0",
37-
"semantic-release": "23.0.2",
38-
"tap": "18.7.0"
39-
}
2+
"name": "@metrics/emitter",
3+
"version": "1.0.0",
4+
"description": "Emitter for pushing a metric stream over misc network protocols to a daemon.",
5+
"main": "lib/emitter.js",
6+
"scripts": {
7+
"test": "tap test/*.js --disable-coverage --allow-empty-coverage",
8+
"test:coverage": "tap test/*.js",
9+
"lint": "eslint .",
10+
"lint:fix": "eslint . --fix"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/metrics-js/emitter.git"
15+
},
16+
"author": "Trygve Lie",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/metrics-js/emitter/issues"
20+
},
21+
"homepage": "https://github.com/metrics-js/emitter#readme",
22+
"dependencies": {
23+
"readable-stream": "^3.4.0"
24+
},
25+
"devDependencies": {
26+
"@metrics/client": "2.5.2",
27+
"@semantic-release/changelog": "6.0.3",
28+
"@semantic-release/commit-analyzer": "11.1.0",
29+
"@semantic-release/git": "10.0.1",
30+
"@semantic-release/github": "9.2.6",
31+
"@semantic-release/npm": "11.0.3",
32+
"@semantic-release/release-notes-generator": "12.1.0",
33+
"eslint": "9.6.0",
34+
"eslint-config-prettier": "9.1.0",
35+
"eslint-plugin-prettier": "5.1.3",
36+
"globals": "15.8.0",
37+
"prettier": "3.3.0",
38+
"semantic-release": "23.0.2",
39+
"tap": "18.7.0"
40+
}
4041
}

0 commit comments

Comments
 (0)