@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
+4 -4
View File
@@ -1,7 +1,7 @@
import {Globber, DefaultGlobber} from './internal-globber'
import {GlobOptions} from './internal-glob-options'
import {HashFileOptions} from './internal-hash-file-options'
import {hashFiles as _hashFiles} from './internal-hash-files'
import {Globber, DefaultGlobber} from './internal-globber.js'
import {GlobOptions} from './internal-glob-options.js'
import {HashFileOptions} from './internal-hash-file-options.js'
import {hashFiles as _hashFiles} from './internal-hash-files.js'
export {Globber, GlobOptions}
@@ -1,5 +1,5 @@
import * as core from '@actions/core'
import {GlobOptions} from './internal-glob-options'
import {GlobOptions} from './internal-glob-options.js'
/**
* Returns a copy with defaults filled in.
+6 -6
View File
@@ -1,12 +1,12 @@
import * as core from '@actions/core'
import * as fs from 'fs'
import * as globOptionsHelper from './internal-glob-options-helper'
import * as globOptionsHelper from './internal-glob-options-helper.js'
import * as path from 'path'
import * as patternHelper from './internal-pattern-helper'
import {GlobOptions} from './internal-glob-options'
import {MatchKind} from './internal-match-kind'
import {Pattern} from './internal-pattern'
import {SearchState} from './internal-search-state'
import * as patternHelper from './internal-pattern-helper.js'
import {GlobOptions} from './internal-glob-options.js'
import {MatchKind} from './internal-match-kind.js'
import {Pattern} from './internal-pattern.js'
import {SearchState} from './internal-search-state.js'
const IS_WINDOWS = process.platform === 'win32'
+1 -1
View File
@@ -4,7 +4,7 @@ import * as fs from 'fs'
import * as stream from 'stream'
import * as util from 'util'
import * as path from 'path'
import {Globber} from './glob'
import {Globber} from './glob.js'
export async function hashFiles(
globber: Globber,
+1 -1
View File
@@ -1,5 +1,5 @@
import * as path from 'path'
import * as pathHelper from './internal-path-helper'
import * as pathHelper from './internal-path-helper.js'
import assert from 'assert'
const IS_WINDOWS = process.platform === 'win32'
+3 -3
View File
@@ -1,6 +1,6 @@
import * as pathHelper from './internal-path-helper'
import {MatchKind} from './internal-match-kind'
import {Pattern} from './internal-pattern'
import * as pathHelper from './internal-path-helper.js'
import {MatchKind} from './internal-match-kind.js'
import {Pattern} from './internal-pattern.js'
const IS_WINDOWS = process.platform === 'win32'
+3 -3
View File
@@ -1,10 +1,10 @@
import * as os from 'os'
import * as path from 'path'
import * as pathHelper from './internal-path-helper'
import * as pathHelper from './internal-path-helper.js'
import assert from 'assert'
import {Minimatch, IMinimatch, IOptions as IMinimatchOptions} from 'minimatch'
import {MatchKind} from './internal-match-kind'
import {Path} from './internal-path'
import {MatchKind} from './internal-match-kind.js'
import {Path} from './internal-path.js'
const IS_WINDOWS = process.platform === 'win32'