switch to ESM and update config/test wiring

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-01-28 10:34:04 +01:00
parent f64486ace9
commit faa5b5bf22
50 changed files with 202 additions and 186 deletions

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
import {Digest} from '../oci/digest';
import {ProgressGroup, Range, SourceInfo} from './ops';
import {Digest} from '../oci/digest.js';
import {ProgressGroup, Range, SourceInfo} from './ops.js';
// https://github.com/moby/buildkit/blob/v0.14.0/client/graph.go#L10-L19
export interface Vertex {

View File

@@ -14,10 +14,10 @@
* limitations under the License.
*/
import {Descriptor} from '../oci/descriptor';
import {Digest} from '../oci/digest';
import {ProgressGroup, Range, SourceInfo} from './ops';
import {RpcStatus} from './rpc';
import {Descriptor} from '../oci/descriptor.js';
import {Digest} from '../oci/digest.js';
import {ProgressGroup, Range, SourceInfo} from './ops.js';
import {RpcStatus} from './rpc.js';
// https://github.com/moby/buildkit/blob/v0.14.0/api/services/control/control.pb.go#L1504-L1525
export interface BuildHistoryRecord {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {GitHubContentOpts} from '../github';
import {GitHubContentOpts} from '../github.js';
export interface Cert {
cacert?: string;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
import {Versioned} from '../oci/versioned';
import {Descriptor} from '../oci/descriptor';
import {Digest} from '../oci/digest';
import {Versioned} from '../oci/versioned.js';
import {Descriptor} from '../oci/descriptor.js';
import {Digest} from '../oci/digest.js';
// https://github.com/docker/buildx/blob/62857022a08552bee5cad0c3044a9a3b185f0b32/util/imagetools/printers.go#L109-L123
export interface Manifest extends Versioned {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {GitHubContentOpts} from '../github';
import {GitHubContentOpts} from '../github.js';
export interface DownloadVersion {
key: string;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {GitHubContentOpts} from '../github';
import {GitHubContentOpts} from '../github.js';
export interface DownloadVersion {
version: string;

View File

@@ -18,8 +18,8 @@ import {AnnotationProperties} from '@actions/core';
import {components as OctoOpenApiTypes} from '@octokit/openapi-types';
import {JwtPayload} from 'jwt-decode';
import {BakeDefinition} from './buildx/bake';
import {ExportResponse} from './buildx/history';
import {BakeDefinition} from './buildx/bake.js';
import {ExportResponse} from './buildx/history.js';
export interface GitHubRelease {
id: number;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
import {Digest} from './digest';
import {Platform} from './descriptor';
import {Digest} from './digest.js';
import {Platform} from './descriptor.js';
export interface ImageConfig {
User?: string;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
import {Digest} from './digest';
import {Digest} from './digest.js';
import {MEDIATYPE_EMPTY_JSON_V1} from './mediatype';
import {MEDIATYPE_EMPTY_JSON_V1} from './mediatype.js';
export interface Descriptor {
mediaType: string;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
import {Versioned} from './versioned';
import {Descriptor} from './descriptor';
import {Versioned} from './versioned.js';
import {Descriptor} from './descriptor.js';
export interface Index extends Versioned {
mediaType?: string;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
import {Descriptor} from './descriptor';
import {Versioned} from './versioned';
import {Descriptor} from './descriptor.js';
import {Versioned} from './versioned.js';
export interface Manifest extends Versioned {
mediaType?: string;

View File

@@ -14,10 +14,10 @@
* limitations under the License.
*/
import {Index} from './index';
import {ImageLayout} from './layout';
import {Manifest} from './manifest';
import {Image} from './config';
import {Index} from './index.js';
import {ImageLayout} from './layout.js';
import {Manifest} from './manifest.js';
import {Image} from './config.js';
export interface LoadArchiveOpts {
file: string;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {GitHubContentOpts} from '../github';
import {GitHubContentOpts} from '../github.js';
export interface DownloadVersion {
version: string;

View File

@@ -16,8 +16,8 @@
import type {SerializedBundle} from '@sigstore/bundle';
import {Subject} from '../intoto/intoto';
import {Platform} from '../oci/descriptor';
import {Subject} from '../intoto/intoto.js';
import {Platform} from '../oci/descriptor.js';
export const FULCIO_URL = 'https://fulcio.sigstore.dev';
export const REKOR_URL = 'https://rekor.sigstore.dev';

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
import {GitHubContentOpts} from '../github';
import {GitHubContentOpts} from '../github.js';
export interface DownloadVersion {
version: string;