Skip to content

Commit

Permalink
Update all dependencies
Browse files Browse the repository at this point in the history
Update all dependencies to their highest version available.

Change the target option to es2022 from es2017 to match the current
configuration of the upstream typescript action.

These changes mean that --openssl-legacy-provider is no longer needed
when building so the option has been dropped from the building step of
the workflow.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Jul 14, 2024
1 parent 0840768 commit fa81d22
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 3,027 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
with:
node-version: 20
- name: diff-ing dist/index.js
env:
NODE_OPTIONS: "--openssl-legacy-provider"
run: |
set -euxo pipefail
npm ci
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,6 @@ This variable is setup for all compilers, automatically.

`dmd` is now allowed on `macos-latest` (arm64).
It should work even if it's a x86_64 binary thanks to the Rosetta compatibility layer.

Updated a lot of dependencies, changed the output target to es2022 from es2017.
This means that one no longer needs to set `NODE_OPTIONS=--openssl-legacy-provider` when building.
14 changes: 13 additions & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sourcemap-register.js

Large diffs are not rendered by default.

3,343 changes: 331 additions & 3,012 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "GitHub Action for setting up a @dlang CI environment",
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/index.ts --source-map -o dist --minify --target es2017",
"build": "ncc build src/index.ts --source-map -o dist --minify --target es2022",
"test": "jest"
},
"jest": {
Expand Down Expand Up @@ -50,16 +50,16 @@
"author": "Mihails Strasuns",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/tool-cache": "^1.6.1",
"typed-rest-client": "^1.8.4"
"@actions/core": "^1.10.1",
"@actions/tool-cache": "^2.0.1",
"typed-rest-client": "^2.0.2"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^14.18.28",
"@vercel/ncc": "^0.27.0",
"@types/node": "^20.14.10",
"@vercel/ncc": "^0.38.1",
"jest": "^29.7.0",
"ts-jest": "^29.1.5",
"typescript": "^4.3.2"
"ts-jest": "^29.2.2",
"typescript": "^5.5.3"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"target": "es2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "NodeNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
Expand Down

0 comments on commit fa81d22

Please sign in to comment.