@actions/glob: convert to an ESM module (#2273)

* `@actions/glob`: convert to an ESM module

* Update packages/glob/RELEASES.md

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Daniel Kennedy
2026-01-29 10:41:33 -05:00
committed by GitHub
co-authored by Copilot
parent 5793b08cd9
commit 7a0147b5c6
18 changed files with 87 additions and 67 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import * as io from '../../io/src/io'
import * as io from '../../io/src/io.js'
import * as path from 'path'
import {hashFiles} from '../src/glob'
import {hashFiles} from '../src/glob.js'
import {promises as fs} from 'fs'
const IS_WINDOWS = process.platform === 'win32'
@@ -1,9 +1,9 @@
import * as child from 'child_process'
import * as io from '../../io/src/io'
import * as io from '../../io/src/io.js'
import * as os from 'os'
import * as path from 'path'
import {Globber, DefaultGlobber} from '../src/internal-globber'
import {GlobOptions} from '../src/internal-glob-options'
import {Globber, DefaultGlobber} from '../src/internal-globber.js'
import {GlobOptions} from '../src/internal-glob-options.js'
import {promises as fs} from 'fs'
const IS_WINDOWS = process.platform === 'win32'
@@ -1,4 +1,4 @@
import * as pathHelper from '../src/internal-path-helper'
import * as pathHelper from '../src/internal-path-helper.js'
const IS_WINDOWS = process.platform === 'win32'
@@ -1,5 +1,5 @@
import * as path from 'path'
import {Path} from '../src/internal-path'
import {Path} from '../src/internal-path.js'
const IS_WINDOWS = process.platform === 'win32'
@@ -1,8 +1,8 @@
import * as path from 'path'
import * as patternHelper from '../src/internal-pattern-helper'
import {MatchKind} from '../src/internal-match-kind'
import {IS_WINDOWS} from '../../io/src/io-util'
import {Pattern} from '../src/internal-pattern'
import * as patternHelper from '../src/internal-pattern-helper.js'
import {MatchKind} from '../src/internal-match-kind.js'
import {IS_WINDOWS} from '../../io/src/io-util.js'
import {Pattern} from '../src/internal-pattern.js'
describe('pattern-helper', () => {
it('getSearchPaths omits negate search paths', () => {
@@ -1,9 +1,9 @@
import * as io from '../../io/src/io'
import * as io from '../../io/src/io.js'
import * as os from 'os'
import * as path from 'path'
import {MatchKind} from '../src/internal-match-kind'
import {MatchKind} from '../src/internal-match-kind.js'
import {promises as fs} from 'fs'
import {Pattern} from '../src/internal-pattern'
import {Pattern} from '../src/internal-pattern.js'
const IS_WINDOWS = process.platform === 'win32'