Skip to content

Commit 7f59d4a

Browse files
authored
Merge pull request #211 from crazy-max/update-node20
chore: node 20 as default runtime
2 parents 85d1918 + 229f285 commit 7f59d4a

11 files changed

+921
-605
lines changed

Diff for: .eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist/**
2+
/node_modules/**

Diff for: .eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"env": {
33
"node": true,
4-
"es2021": true
4+
"es6": true
55
},
66
"extends": [
77
"eslint:recommended",
8+
"plugin:@typescript-eslint/eslint-recommended",
89
"plugin:@typescript-eslint/recommended",
910
"plugin:prettier/recommended"
1011
],

Diff for: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

+111-111
Large diffs are not rendered by default.

Diff for: .yarn/releases/yarn-3.5.1.cjs renamed to .yarn/releases/yarn-3.6.3.cjs

+241-240
Large diffs are not rendered by default.

Diff for: .yarnrc.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
logFilters:
22
- code: YN0013
33
level: discard
4+
- code: YN0019
5+
level: discard
46
- code: YN0076
57
level: discard
68

@@ -10,4 +12,4 @@ plugins:
1012
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
1113
spec: "@yarnpkg/plugin-interactive-tools"
1214

13-
yarnPath: .yarn/releases/yarn-3.5.1.cjs
15+
yarnPath: .yarn/releases/yarn-3.6.3.cjs

Diff for: action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ inputs:
6363
required: false
6464

6565
runs:
66-
using: 'node16'
66+
using: 'node20'
6767
main: 'dist/index.js'

Diff for: dev.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG NODE_VERSION=16
3+
ARG NODE_VERSION=20
44

55
FROM node:${NODE_VERSION}-alpine AS base
66
RUN apk add --no-cache cpio findutils git

Diff for: dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+18-13
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
"description": "GitHub Action to deploy to GitHub Pages",
44
"main": "src/main.ts",
55
"scripts": {
6-
"build": "ncc build --source-map --minify --license licenses.txt",
7-
"lint": "eslint src/**/*.ts",
8-
"format": "eslint --fix src/**/*.ts"
6+
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
7+
"lint": "yarn run prettier && yarn run eslint",
8+
"format": "yarn run prettier:fix && yarn run eslint:fix",
9+
"eslint": "eslint --max-warnings=0 .",
10+
"eslint:fix": "eslint --fix .",
11+
"prettier": "prettier --check \"./**/*.ts\"",
12+
"prettier:fix": "prettier --write \"./**/*.ts\"",
13+
"all": "yarn run build && yarn run format"
914
},
1015
"repository": {
1116
"type": "git",
@@ -19,7 +24,7 @@
1924
],
2025
"author": "CrazyMax",
2126
"license": "MIT",
22-
"packageManager": "yarn@3.5.1",
27+
"packageManager": "yarn@3.6.3",
2328
"dependencies": {
2429
"@actions/core": "^1.10.0",
2530
"@actions/exec": "^1.1.1",
@@ -28,15 +33,15 @@
2833
},
2934
"devDependencies": {
3035
"@types/fs-extra": "^11.0.1",
31-
"@types/node": "^16.18.26",
32-
"@typescript-eslint/eslint-plugin": "^5.59.2",
33-
"@typescript-eslint/parser": "^5.59.2",
34-
"@vercel/ncc": "^0.36.1",
35-
"eslint": "^8.40.0",
36-
"eslint-config-prettier": "^8.8.0",
37-
"eslint-plugin-prettier": "^4.2.1",
38-
"prettier": "^2.8.8",
36+
"@types/node": "^20.6.0",
37+
"@typescript-eslint/eslint-plugin": "^6.6.0",
38+
"@typescript-eslint/parser": "^6.6.0",
39+
"@vercel/ncc": "^0.38.0",
40+
"eslint": "^8.49.0",
41+
"eslint-config-prettier": "^9.0.0",
42+
"eslint-plugin-prettier": "^5.0.0",
43+
"prettier": "^3.0.3",
3944
"ts-node": "^10.9.1",
40-
"typescript": "^4.9.5"
45+
"typescript": "^5.2.2"
4146
}
4247
}

Diff for: tsconfig.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
{
22
"compilerOptions": {
3+
"esModuleInterop": true,
34
"target": "es6",
45
"module": "commonjs",
6+
"strict": true,
7+
"sourceMap": true,
58
"newLine": "lf",
69
"outDir": "./lib",
710
"rootDir": "./src",
8-
"esModuleInterop": true,
911
"forceConsistentCasingInFileNames": true,
10-
"strict": true,
1112
"noImplicitAny": false,
13+
"resolveJsonModule": true,
1214
"useUnknownInCatchVariables": false,
1315
},
14-
"exclude": ["node_modules"]
16+
"exclude": [
17+
"node_modules"
18+
]
1519
}

0 commit comments

Comments
 (0)