Skip to content

Commit dbd51c2

Browse files
goatwu1993npalm
andauthored
fix(deps): update replace-in-file and use vitest (#832)
* test: migrate from jest to vitest for esm support * fix(deps): update replace-in-file to ^8.3.0 * chore: fix some cspell issues * chore: fix editor config checker * chore: megalinter * disable json checks for megalinter * disable json checks for megalinter --------- Co-authored-by: Niek Palm <[email protected]>
1 parent 28ccbce commit dbd51c2

18 files changed

+947
-1674
lines changed

.cspell.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"**/.pnpm-lock.json",
77
".vscode",
88
"megalinter",
9+
"megalinter-reports/**",
10+
"coverage/**",
11+
"coverage_nyc/**",
912
"package-lock.json",
1013
"report",
1114
".*"
@@ -15,7 +18,8 @@
1518
"npalm",
1619
"nvmrc",
1720
"markdownlintignore",
18-
"devcontainer"
21+
"devcontainer",
22+
"vitest"
1923
],
2024
"language": "en",
2125
"noConfigSearch": true,

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"esbenp.prettier-vscode",
1616
"github.vscode-pull-request-github",
1717
"orta.vscode-jest",
18-
"yzhang.markdown-all-in-one"
18+
"yzhang.markdown-all-in-one"
1919
]
2020
}
2121
},
2222
"postCreateCommand": "yarn install",
2323
"waitFor": "postCreateCommand",
24-
"onCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
24+
"onCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt"
2525
}

.eslintrc.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"plugins": ["import", "jest", "@typescript-eslint"],
2+
"plugins": ["import", "@typescript-eslint"],
33
"extends": ["plugin:github/recommended"],
44
"parser": "@typescript-eslint/parser",
55
"parserOptions": {
@@ -56,12 +56,11 @@
5656
"@typescript-eslint/restrict-plus-operands": "error",
5757
"@typescript-eslint/type-annotation-spacing": "error",
5858
"@typescript-eslint/unbound-method": "error",
59-
"no-shadow": "off",
60-
"@typescript-eslint/no-shadow": "error"
59+
"no-shadow": "off",
60+
"@typescript-eslint/no-shadow": "error"
6161
},
6262
"env": {
6363
"node": true,
64-
"es6": true,
65-
"jest/globals": true
64+
"es6": true
6665
}
6766
}

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ updates:
1818
eslint:
1919
patterns:
2020
- "eslint*"
21-
jest:
21+
vitest:
2222
patterns:
23-
- "*jest*"
23+
- "*vitest*"
2424
figlet:
2525
patterns:
2626
- "*figlet*"

.mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DISABLE_LINTERS:
3232
- COPYPASTE_JSCPD
3333
- JAVASCRIPT_ES
3434

35-
JSON_JSONLINT_FILTER_REGEX_EXCLUDE: (tsconfig.json)
35+
JSON_JSONLINT_FILTER_REGEX_EXCLUDE: (tsconfig\\.json|\\.vscode/extensions\\.json)
3636

3737
SPELL_LYCHEE_FILTER_REGEX_EXCLUDE: (CHANGELOG.md)
3838

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"orta.vscode-jest",
1111
"yzhang.markdown-all-in-one"
1212
]
13-
}
13+
}

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
### Bug Fixes
2727

2828
* **deps:** bump yaml from 2.5.0 to 2.5.1 ([#692](https://github.com/npalm/action-docs/issues/692)) ([92755ae](https://github.com/npalm/action-docs/commit/92755aeeec47a015b2dcbdfba12155b65985cfb6))
29-
* upgrade replace-in-file and figlet depenencies ([e585c0f](https://github.com/npalm/action-docs/commit/e585c0fd9a1409e417c6bee2f62ff6d869ffa388))
29+
* upgrade replace-in-file and figlet dependencies ([e585c0f](https://github.com/npalm/action-docs/commit/e585c0fd9a1409e417c6bee2f62ff6d869ffa388))
3030

3131
## [2.4.3](https://github.com/npalm/action-docs/compare/v2.4.2...v2.4.3) (2024-09-03)
3232

@@ -69,7 +69,7 @@
6969

7070
### Bug Fixes
7171

72-
* -a option was ingored ([#561](https://github.com/npalm/action-docs/issues/561)) ([8dbd40e](https://github.com/npalm/action-docs/commit/8dbd40eb476605d90f9a0d94848015097c02198f))
72+
* -a option was ignored ([#561](https://github.com/npalm/action-docs/issues/561)) ([8dbd40e](https://github.com/npalm/action-docs/commit/8dbd40eb476605d90f9a0d94848015097c02198f))
7373
* **deps:** bump yaml from 2.4.0 to 2.4.1 ([#557](https://github.com/npalm/action-docs/issues/557)) ([8c2dc15](https://github.com/npalm/action-docs/commit/8c2dc15d9f90772c93c66133ef5d4948705b3e56))
7474

7575
## [2.2.0](https://github.com/npalm/action-docs/compare/v2.1.0...v2.2.0) (2024-03-06)

__tests__/fixtures/action/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ outputs:
2626
runs:
2727
using: "node12"
2828
main: "dist/index.js"
29-

__tests__/fixtures/action/all_fields_action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ outputs:
3030
runs:
3131
using: "node12"
3232
main: "dist/index.js"
33-
Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
name: 'An Action'
2-
description: 'Default test'
3-
author: 'Niek Palm'
4-
inputs:
5-
inputA:
6-
description: 'A description A'
7-
required: false
8-
inputB:
9-
description: 'A description B'
10-
required: true
11-
inputC:
12-
description: 'A description C'
13-
required: true
14-
default: C
15-
inputD:
16-
description: 'A description D'
17-
required: false
18-
default: D
19-
inputE:
20-
description: 'A description E'
21-
required: false
22-
default: false
23-
24-
outputs:
25-
outputA:
26-
description: 'A description A'
27-
outputB:
28-
description: 'A description B'
29-
30-
runs:
31-
using: 'node12'
32-
main: 'dist/index.js'
1+
name: 'An Action'
2+
description: 'Default test'
3+
author: 'Niek Palm'
4+
inputs:
5+
inputA:
6+
description: 'A description A'
7+
required: false
8+
inputB:
9+
description: 'A description B'
10+
required: true
11+
inputC:
12+
description: 'A description C'
13+
required: true
14+
default: C
15+
inputD:
16+
description: 'A description D'
17+
required: false
18+
default: D
19+
inputE:
20+
description: 'A description E'
21+
required: false
22+
default: false
23+
24+
outputs:
25+
outputA:
26+
description: 'A description A'
27+
outputB:
28+
description: 'A description B'
29+
30+
runs:
31+
using: 'node12'
32+
main: 'dist/index.js'
33+

0 commit comments

Comments
 (0)