Skip to content

Commit 2343535

Browse files
authored
chore: Update dependencies to newest versions (#14)
This required a change in mocking strategy and introduction of esmock due to the latest github actions only being provided as esm modules
1 parent 9952bb6 commit 2343535

28 files changed

Lines changed: 1352 additions & 941 deletions

dist/blob-creator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type * as github from '@actions/github';
2-
import type { FileChange } from './types';
2+
import type { FileChange } from './types.js';
33
type Octokit = ReturnType<typeof github.getOctokit>;
44
/**
55
* Tree item for GitHub API

dist/commit-creator.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ActionInputs, CommitResult } from './types';
1+
import type { ActionInputs, CommitResult } from './types.js';
22
/**
33
* Create a signed commit using the GitHub API
44
* @param inputs The action inputs

dist/file-collector.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FileChange } from './types';
1+
import type { FileChange } from './types.js';
22
/**
33
* Collect files based on the input
44
* @param paths Optional list of paths to collect (supports wildcards)

dist/github-client.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RepositoryInfo } from './types';
1+
import type { RepositoryInfo } from './types.js';
22
/**
33
* Parse repository string into owner and repo
44
* @param repository Repository in format owner/repo
@@ -11,6 +11,6 @@ export declare function parseRepository(repository: string): RepositoryInfo;
1111
* @param token GitHub token for authentication
1212
* @returns Octokit instance
1313
*/
14-
export declare function createGitHubClient(token: string): import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api & {
14+
export declare function createGitHubClient(token: string): import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods").Api & {
1515
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
1616
};

dist/index.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/input-parser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ActionInputs } from './types';
1+
import type { ActionInputs } from './types.js';
22
/**
33
* Get and validate all action inputs
44
* @returns An object containing all the inputs for the action

dist/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

dist/validation.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ActionInputs } from './types';
1+
import type { ActionInputs } from './types.js';
22
/**
33
* Validate action inputs for security and correctness
44
* @param inputs The action inputs to validate

package-lock.json

Lines changed: 703 additions & 356 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "gha-create-signed-commit",
33
"description": "Create a signed commit using the GitHub API without pushing it",
4+
"type": "module",
45
"main": "dist/index.js",
56
"scripts": {
6-
"test": "node --test --require ts-node/register **/*.test.ts",
7+
"test": "node --test --import tsx **/*.test.ts",
78
"prebuild": "mkdir -p dist",
89
"build": "ncc build src/index.ts -o dist --minify",
910
"lint": "biome check",
@@ -14,15 +15,16 @@
1415
"author": "Statens Pensjonskasse",
1516
"license": "MIT",
1617
"dependencies": {
17-
"@actions/core": "^1.11.1",
18-
"@actions/exec": "^1.1.1",
19-
"@actions/github": "^6.0.1"
18+
"@actions/core": "^3.0.0",
19+
"@actions/exec": "^3.0.0",
20+
"@actions/github": "^9.1.0"
2021
},
2122
"devDependencies": {
22-
"@statens-pensjonskasse/biome": "^2.0.22",
23-
"@types/node": "^24.10.4",
23+
"@statens-pensjonskasse/biome": "^2.0.23",
24+
"@types/node": "^24.12.2",
2425
"@vercel/ncc": "^0.38.4",
25-
"ts-node": "^10.9.2",
26+
"esmock": "^2.7.3",
27+
"tsx": "^4.21.0",
2628
"typescript": "^5.9.3"
2729
}
2830
}

0 commit comments

Comments
 (0)