@actions/core: convert to ESM module
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as command from '../src/command'
|
||||
import * as command from '../src/command.js'
|
||||
import * as os from 'os'
|
||||
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as fs from 'fs'
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
import * as core from '../src/core'
|
||||
import * as core from '../src/core.js'
|
||||
import {HttpClient} from '@actions/http-client'
|
||||
import {toCommandProperties} from '../src/utils'
|
||||
import {toCommandProperties} from '../src/utils.js'
|
||||
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as path from 'path'
|
||||
|
||||
import {toPlatformPath, toPosixPath, toWin32Path} from '../src/path-utils'
|
||||
import {toPlatformPath, toPosixPath, toWin32Path} from '../src/path-utils.js'
|
||||
|
||||
describe('#toPosixPath', () => {
|
||||
const cases: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os from 'os'
|
||||
import {platform} from '../src/core'
|
||||
import {platform} from '../src/core.js'
|
||||
|
||||
describe('getInfo', () => {
|
||||
it('returns the platform info', async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as fs from 'fs'
|
||||
import * as os from 'os'
|
||||
import path from 'path'
|
||||
import {summary, SUMMARY_ENV_VAR} from '../src/summary'
|
||||
import {summary, SUMMARY_ENV_VAR} from '../src/summary.js'
|
||||
|
||||
const testDirectoryPath = path.join(__dirname, 'test')
|
||||
const testFilePath = path.join(testDirectoryPath, 'test-summary.md')
|
||||
|
||||
Reference in New Issue
Block a user