ESM-only with updated @octokit dependencies

This commit is contained in:
Lokesh Gopu
2026-01-27 15:35:32 -05:00
parent ecdfc18bf2
commit b05d26b3fa
12 changed files with 62 additions and 23 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/main/src/context.ts
import {WebhookPayload} from './interfaces'
import {WebhookPayload} from './interfaces.js'
import {readFileSync, existsSync} from 'fs'
import {EOL} from 'os'
+3 -4
View File
@@ -1,8 +1,7 @@
import * as Context from './context'
import {GitHub, getOctokitOptions} from './utils'
import * as Context from './context.js'
import {GitHub, getOctokitOptions} from './utils.js'
// octokit + plugins
import {OctokitOptions, OctokitPlugin} from '@octokit/core/dist-types/types'
import type {OctokitOptions, OctokitPlugin} from '@octokit/core/types'
export const context = new Context.Context()
+1 -1
View File
@@ -1,6 +1,6 @@
import * as http from 'http'
import * as httpClient from '@actions/http-client'
import {OctokitOptions} from '@octokit/core/dist-types/types'
import type {OctokitOptions} from '@octokit/core/types'
import {ProxyAgent, fetch} from 'undici'
export function getAuthString(
+3 -3
View File
@@ -1,9 +1,9 @@
import * as Context from './context'
import * as Utils from './internal/utils'
import * as Context from './context.js'
import * as Utils from './internal/utils.js'
import type {OctokitOptions} from '@octokit/core/types'
// octokit + plugins
import {Octokit} from '@octokit/core'
import {OctokitOptions} from '@octokit/core/dist-types/types'
import {restEndpointMethods} from '@octokit/plugin-rest-endpoint-methods'
import {paginateRest} from '@octokit/plugin-paginate-rest'