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

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

* Update packages/glob/RELEASES.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Daniel KennedyandCopilot authored and GitHub committed 2026-01-29 10:41:33 -05:00
1 parent eaeca12f38
commit e138087709
17 files changed
+84 -65

No files matched your search

+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'
+3 -3
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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'
+4 -4
View File
@@ -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', () => {
+3 -3
View File
@@ -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'