@actions/core: convert to ESM module
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as os from 'os'
|
||||
import {toCommandValue} from './utils'
|
||||
import {toCommandValue} from './utils.js'
|
||||
|
||||
// For internal use, subject to change.
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {issue, issueCommand} from './command'
|
||||
import {issueFileCommand, prepareKeyValueMessage} from './file-command'
|
||||
import {toCommandProperties, toCommandValue} from './utils'
|
||||
import {issue, issueCommand} from './command.js'
|
||||
import {issueFileCommand, prepareKeyValueMessage} from './file-command.js'
|
||||
import {toCommandProperties, toCommandValue} from './utils.js'
|
||||
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
|
||||
import {OidcClient} from './oidc-utils'
|
||||
import {OidcClient} from './oidc-utils.js'
|
||||
|
||||
/**
|
||||
* Interface for getInput options
|
||||
@@ -400,19 +400,19 @@ export async function getIDToken(aud?: string): Promise<string> {
|
||||
/**
|
||||
* Summary exports
|
||||
*/
|
||||
export {summary} from './summary'
|
||||
export {summary} from './summary.js'
|
||||
|
||||
/**
|
||||
* @deprecated use core.summary
|
||||
*/
|
||||
export {markdownSummary} from './summary'
|
||||
export {markdownSummary} from './summary.js'
|
||||
|
||||
/**
|
||||
* Path exports
|
||||
*/
|
||||
export {toPosixPath, toWin32Path, toPlatformPath} from './path-utils'
|
||||
export {toPosixPath, toWin32Path, toPlatformPath} from './path-utils.js'
|
||||
|
||||
/**
|
||||
* Platform utilities exports
|
||||
*/
|
||||
export * as platform from './platform'
|
||||
export * as platform from './platform.js'
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import * as crypto from 'crypto'
|
||||
import * as fs from 'fs'
|
||||
import * as os from 'os'
|
||||
import {toCommandValue} from './utils'
|
||||
import {toCommandValue} from './utils.js'
|
||||
|
||||
export function issueFileCommand(command: string, message: any): void {
|
||||
const filePath = process.env[`GITHUB_${command}`]
|
||||
|
||||
@@ -3,7 +3,7 @@ import * as actions_http_client from '@actions/http-client'
|
||||
import {RequestOptions} from '@actions/http-client/lib/interfaces'
|
||||
import {HttpClient} from '@actions/http-client'
|
||||
import {BearerCredentialHandler} from '@actions/http-client/lib/auth'
|
||||
import {debug, setSecret} from './core'
|
||||
import {debug, setSecret} from './core.js'
|
||||
interface TokenResponse {
|
||||
value?: string
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// We use any as a valid input type
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
import {AnnotationProperties} from './core'
|
||||
import {CommandProperties} from './command'
|
||||
import {AnnotationProperties} from './core.js'
|
||||
import {CommandProperties} from './command.js'
|
||||
|
||||
/**
|
||||
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||
|
||||
Reference in New Issue
Block a user