Skip to content

Commit 754cd7b

Browse files
Merge pull request #401 from technote-space/release/next-v5.2.28
release: v5.3.0
2 parents 326e115 + b2280a5 commit 754cd7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1269
-2825
lines changed

.eslintrc

Lines changed: 112 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,115 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:@typescript-eslint/recommended",
5-
"plugin:@typescript-eslint/eslint-recommended"
6-
],
7-
"plugins": [
8-
"@typescript-eslint"
9-
],
10-
"parser": "@typescript-eslint/parser",
11-
"parserOptions": {
12-
"sourceType": "module",
13-
"ecmaVersion": 2018
14-
},
15-
"env": {
16-
"node": true,
17-
"jest": true,
18-
"es6": true,
19-
"browser": true
20-
},
21-
"settings": {
22-
"react": {
23-
"version": "latest"
24-
}
25-
},
26-
"rules": {
27-
"camelcase": [
28-
"error",
29-
{
30-
"properties": "always"
31-
}
32-
],
33-
"require-jsdoc": [
34-
"error",
35-
{
36-
"require": {
37-
"FunctionDeclaration": true,
38-
"MethodDefinition": true,
39-
"ClassDeclaration": true
40-
}
41-
}
42-
],
43-
"valid-jsdoc": [
44-
"error",
45-
{
46-
"requireReturn": false,
47-
"preferType": {
48-
"String": "string",
49-
"Object": "object",
50-
"Number": "number",
51-
"Function": "function",
52-
"Void": "void"
53-
}
54-
}
55-
],
56-
"quotes": [
57-
"error",
58-
"single",
59-
"avoid-escape"
60-
],
61-
"key-spacing": [
62-
"error",
63-
{
64-
"singleLine": {
65-
"beforeColon": false,
66-
"afterColon": true
67-
},
68-
"multiLine": {
69-
"beforeColon": false,
70-
"afterColon": true
71-
}
72-
}
73-
],
74-
"no-magic-numbers": [
75-
"error",
76-
{
77-
"ignoreArrayIndexes": true
78-
}
79-
],
80-
"eqeqeq": "error",
81-
"block-scoped-var": "error",
82-
"complexity": [
83-
"error",
84-
{
85-
"maximum": 20
86-
}
87-
],
88-
"curly": "error",
89-
"default-case": "error",
90-
"dot-location": [
91-
"error",
92-
"property"
93-
],
94-
"guard-for-in": "error",
95-
"no-eval": "error",
96-
"block-spacing": "error",
97-
"brace-style": "error",
98-
"comma-spacing": [
99-
"error",
100-
{
101-
"before": false,
102-
"after": true
103-
}
104-
],
105-
"id-length": [
106-
"error",
107-
{
108-
"min": 2,
109-
"properties": "never",
110-
"exceptions": [
111-
"$"
112-
]
113-
}
114-
],
115-
"indent": [
116-
"error",
117-
2,
118-
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:@typescript-eslint/eslint-recommended"
6+
],
7+
"plugins": [
8+
"@typescript-eslint",
9+
"import"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"sourceType": "module",
14+
"ecmaVersion": 2018
15+
},
16+
"env": {
17+
"node": true,
18+
"jest": true,
19+
"es6": true,
20+
"browser": true
21+
},
22+
"settings": {
23+
"react": {
24+
"version": "latest"
25+
}
26+
},
27+
"rules": {
28+
"camelcase": [
29+
"error",
30+
{
31+
"properties": "always"
32+
}
33+
],
34+
"quotes": [
35+
"error",
36+
"single",
37+
"avoid-escape"
38+
],
39+
"key-spacing": [
40+
"error",
41+
{
42+
"singleLine": {
43+
"beforeColon": false,
44+
"afterColon": true
45+
},
46+
"multiLine": {
47+
"beforeColon": false,
48+
"afterColon": true
49+
}
50+
}
51+
],
52+
"eqeqeq": "error",
53+
"block-scoped-var": "error",
54+
"complexity": [
55+
"error",
56+
{
57+
"maximum": 20
58+
}
59+
],
60+
"default-case": "error",
61+
"dot-location": [
62+
"error",
63+
"property"
64+
],
65+
"guard-for-in": "error",
66+
"no-eval": "error",
67+
"block-spacing": "error",
68+
"brace-style": "error",
69+
"comma-spacing": [
70+
"error",
71+
{
72+
"before": false,
73+
"after": true
74+
}
75+
],
76+
"indent": [
77+
"error",
78+
2,
79+
{
11980
"SwitchCase": 1
120-
}
121-
],
122-
"space-before-function-paren": [
123-
"error",
124-
"never"
125-
],
126-
"space-before-blocks": "error",
127-
"prefer-const": "error",
128-
"no-var": "error",
129-
"arrow-body-style": "off",
130-
"arrow-spacing": "error",
131-
"strict": [
132-
"error"
133-
],
134-
"no-warning-comments": [
135-
"warn",
136-
{
137-
"terms": [
138-
"todo",
139-
"fixme",
140-
"hack"
141-
],
142-
"location": "anywhere"
143-
}
144-
],
145-
"semi": [
146-
"error"
147-
]
148-
}
81+
}
82+
],
83+
"space-before-function-paren": [
84+
"error",
85+
"never"
86+
],
87+
"space-before-blocks": "error",
88+
"prefer-const": "error",
89+
"no-var": "error",
90+
"arrow-body-style": "off",
91+
"arrow-spacing": "error",
92+
"strict": [
93+
"error"
94+
],
95+
"no-warning-comments": [
96+
"warn",
97+
{
98+
"terms": [
99+
"todo",
100+
"fixme",
101+
"hack"
102+
],
103+
"location": "anywhere"
104+
}
105+
],
106+
"semi": [
107+
"error"
108+
],
109+
"sort-imports": 0,
110+
"import/order": [2, {
111+
"groups": ["type", "builtin", "external", "internal", "parent", "sibling", "index", "object"],
112+
"alphabetize": { "order": "asc", "caseInsensitive": true },
113+
}]
114+
}
149115
}

jest.config.js

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

jest.setup.ts

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

package.json

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "5.2.28",
3+
"version": "5.3.0",
44
"description": "Helper for GitHub Action.",
55
"keywords": [
66
"github",
@@ -20,47 +20,53 @@
2020
"email": "[email protected]",
2121
"url": "https://technote.space"
2222
},
23-
"main": "dist/index.js",
23+
"type": "module",
24+
"exports": "./dist/index.mjs",
25+
"main": "dist/index.mjs",
2426
"types": "dist/index.d.ts",
2527
"files": [
2628
"dist"
2729
],
2830
"scripts": {
29-
"build": "tsc",
30-
"cover": "jest --coverage",
31+
"build": "tsc && rm -f dist/*.js && rollup -c",
32+
"cover": "vitest run --coverage",
3133
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
32-
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
33-
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
34+
"lint": "eslint 'src/**/*.ts' --cache",
35+
"lint:fix": "eslint --fix 'src/**/*.ts'",
3436
"prepublishOnly": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --disable",
3537
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable",
36-
"test": "yarn lint && yarn cover",
38+
"test": "yarn lint && yarn typecheck && yarn cover",
39+
"typecheck": "tsc --noEmit",
3740
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit"
3841
},
3942
"dependencies": {
4043
"@actions/core": "^1.6.0",
41-
"@actions/github": "^5.0.0",
44+
"@actions/github": "^5.0.1",
4245
"@octokit/openapi-types": "^11.2.0",
4346
"@octokit/plugin-rest-endpoint-methods": "^5.13.0",
44-
"@technote-space/github-action-log-helper": "^0.1.50",
47+
"@technote-space/github-action-log-helper": "^0.2.0",
4548
"shell-escape": "^0.2.0",
4649
"sprintf-js": "^1.1.2"
4750
},
4851
"devDependencies": {
4952
"@commitlint/cli": "^16.2.3",
5053
"@commitlint/config-conventional": "^16.2.1",
51-
"@technote-space/github-action-test-helper": "^0.7.40",
52-
"@types/jest": "^27.4.1",
53-
"@types/node": "^17.0.21",
54-
"@typescript-eslint/eslint-plugin": "^5.15.0",
55-
"@typescript-eslint/parser": "^5.15.0",
56-
"eslint": "^8.11.0",
54+
"@rollup/plugin-typescript": "^8.3.2",
55+
"@sindresorhus/tsconfig": "^2.0.0",
56+
"@technote-space/github-action-test-helper": "^0.9.1",
57+
"@types/node": "^17.0.25",
58+
"@types/shell-escape": "^0.2.0",
59+
"@typescript-eslint/eslint-plugin": "^5.20.0",
60+
"@typescript-eslint/parser": "^5.20.0",
61+
"c8": "^7.11.0",
62+
"eslint": "^8.13.0",
63+
"eslint-plugin-import": "^2.26.0",
5764
"husky": "^7.0.4",
58-
"jest": "^27.5.1",
59-
"jest-circus": "^27.5.1",
60-
"lint-staged": "^12.3.7",
65+
"lint-staged": "^12.3.8",
6166
"nock": "^13.2.4",
62-
"ts-jest": "^27.1.3",
63-
"typescript": "^4.6.2"
67+
"rollup": "^2.70.2",
68+
"typescript": "^4.6.3",
69+
"vitest": "^0.9.3"
6470
},
6571
"publishConfig": {
6672
"access": "public"

rollup.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pluginTypescript from '@rollup/plugin-typescript';
2+
3+
export default {
4+
input: 'src/index.ts',
5+
output: {
6+
file: 'dist/index.mjs',
7+
format: 'es',
8+
},
9+
plugins: [
10+
pluginTypescript(),
11+
],
12+
};

0 commit comments

Comments
 (0)