Skip to content

Commit

Permalink
Merge pull request #693 from AurorNZ/Upgrade-to-node-20
Browse files Browse the repository at this point in the history
Upgrade to node 20
  • Loading branch information
Obi-Dann authored Jul 4, 2024
2 parents 96f0b0b + d52a399 commit 281f6ad
Show file tree
Hide file tree
Showing 12 changed files with 5,722 additions and 4,657 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- run: |
Expand All @@ -25,18 +25,18 @@ jobs:
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./

pr-build-test:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
- uses: pnpm/action-setup@v2
node-version: '20'
- uses: pnpm/action-setup@v4
with:
version: 8
- run: |
Expand Down
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"standard.enable": false
{
"standard.enable": false,
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ inputs:
Fetching dependencies can be quite slow on larger changesets
default: 'true'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
3,902 changes: 1,877 additions & 2,025 deletions dist/index.js

Large diffs are not rendered by default.

131 changes: 64 additions & 67 deletions dist/index.js.LEGAL.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/main.wasm.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ await build({
entryPoints: ['src/index.ts'],
bundle: true,
platform: 'node',
target: 'node16',
target: 'node20',
external: ['re2', 'dtrace-provider', 'performance'],
outdir: 'dist',
minify: true,
// fix for https://github.com/microsoft/node-jsonc-parser/issues/57
mainFields: ['module', 'main'],

plugins: [
copy({
Expand Down
39 changes: 15 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,25 @@
"author": "AurorNZ",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@ungap/structured-clone": "^1.2.0",
"bunyan": "1.8.15",
"renovate": "36.6.0",
"simple-git": "3.19.1"
"renovate": "37.423.0",
"simple-git": "3.25.0"
},
"devDependencies": {
"@tsconfig/node16": "16.1.0",
"@types/bunyan": "^1.8.8",
"@types/node": "~16.18.38",
"@types/ungap__structured-clone": "0.3.0",
"dotenv": "^16.3.1",
"esbuild": "0.18.11",
"@tsconfig/node20": "20.1.4",
"@types/bunyan": "^1.8.11",
"@types/node": "~20.14.9",
"@types/ungap__structured-clone": "1.2.0",
"dotenv": "^16.4.5",
"esbuild": "0.23.0",
"esbuild-plugin-copy": "2.1.1",
"esbuild-register": "3.4.2",
"eslint": "^8.44.0",
"eslint-plugin-github": "^4.8.0",
"prettier": "2.8.8",
"typescript": "^5.1.6"
},
"pnpm": {
"overrides": {
"fast-xml-parser@<4.2.4": ">=4.2.4",
"semver@<7.5.2": ">=7.5.2"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
"esbuild-register": "3.5.0",
"eslint": "^8.57.0",
"eslint-plugin-github": "^5.0.1",
"prettier": "3.3.2",
"typescript": "^5.5.3"
}
}
30 changes: 0 additions & 30 deletions patches/[email protected]

This file was deleted.

Loading

0 comments on commit 281f6ad

Please sign in to comment.