Skip to content

Commit

Permalink
move types to the right place
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed May 15, 2024
1 parent dd345e0 commit 9579e6f
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion __tests__/buildkit/buildkit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {beforeEach, describe, expect, it, jest, test} from '@jest/globals';
import {BuildKit} from '../../src/buildkit/buildkit';
import {Builder} from '../../src/buildx/builder';

import {BuilderInfo} from '../../src/types/builder';
import {BuilderInfo} from '../../src/types/buildx/builder';

beforeEach(() => {
jest.clearAllMocks();
Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildx/bake.test.itg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as fs from 'fs';
import * as path from 'path';

import {Bake} from '../../src/buildx/bake';
import {BakeDefinition} from '../../src/types/bake';
import {BakeDefinition} from '../../src/types/buildx/bake';

const fixturesDir = path.join(__dirname, '..', 'fixtures');

Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildx/bake.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {Bake} from '../../src/buildx/bake';
import {Context} from '../../src/context';

import {ExecOptions} from '@actions/exec';
import {BakeDefinition, BakeMetadata} from '../../src/types/bake';
import {BakeDefinition, BakeMetadata} from '../../src/types/buildx/bake';

const fixturesDir = path.join(__dirname, '..', 'fixtures');
// prettier-ignore
Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildx/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as rimraf from 'rimraf';
import {Context} from '../../src/context';
import {Build} from '../../src/buildx/build';

import {BuildMetadata} from '../../src/types/build';
import {BuildMetadata} from '../../src/types/buildx/build';

const fixturesDir = path.join(__dirname, '..', 'fixtures');
// prettier-ignore
Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildx/builder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as path from 'path';
import {Builder} from '../../src/buildx/builder';
import {Exec} from '../../src/exec';

import {BuilderInfo} from '../../src/types/builder';
import {BuilderInfo} from '../../src/types/buildx/builder';

const fixturesDir = path.join(__dirname, '..', 'fixtures');

Expand Down
2 changes: 1 addition & 1 deletion __tests__/buildx/buildx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {Buildx} from '../../src/buildx/buildx';
import {Context} from '../../src/context';
import {Exec} from '../../src/exec';

import {Cert} from '../../src/types/buildx';
import {Cert} from '../../src/types/buildx/buildx';

const fixturesDir = path.join(__dirname, '..', 'fixtures');
// prettier-ignore
Expand Down
2 changes: 1 addition & 1 deletion __tests__/docker/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import * as rimraf from 'rimraf';
import {Docker} from '../../src/docker/docker';
import {Exec} from '../../src/exec';

import {ConfigFile} from '../../src/types/docker';
import {ConfigFile} from '../../src/types/docker/docker';

const fixturesDir = path.join(__dirname, '..', 'fixtures');

Expand Down
2 changes: 1 addition & 1 deletion src/buildx/bake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {Exec} from '../exec';
import {Util} from '../util';

import {ExecOptions} from '@actions/exec';
import {BakeDefinition, BakeMetadata} from '../types/bake';
import {BakeDefinition, BakeMetadata} from '../types/buildx/bake';

export interface BakeOpts {
buildx?: Buildx;
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {Context} from '../context';
import {GitHub} from '../github';
import {Util} from '../util';

import {BuildMetadata} from '../types/build';
import {BuildMetadata} from '../types/buildx/build';

export interface BuildOpts {
buildx?: Buildx;
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as core from '@actions/core';
import {Buildx} from './buildx';
import {Exec} from '../exec';

import {BuilderInfo, GCPolicy, NodeInfo} from '../types/builder';
import {BuilderInfo, GCPolicy, NodeInfo} from '../types/buildx/builder';

export interface BuilderOpts {
buildx?: Buildx;
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/buildx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as semver from 'semver';
import {Docker} from '../docker/docker';
import {Exec} from '../exec';

import {Cert, LocalRefsOpts, LocalRefsResponse, LocalState} from '../types/buildx';
import {Cert, LocalRefsOpts, LocalRefsResponse, LocalState} from '../types/buildx/buildx';

export interface BuildxOpts {
standalone?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {Docker} from '../docker/docker';
import {Exec} from '../exec';
import {GitHub} from '../github';

import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/history';
import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/buildx/history';

export interface HistoryOpts {
buildx?: Buildx;
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {Docker} from '../docker/docker';
import {Git} from '../git';
import {Util} from '../util';

import {DownloadVersion} from '../types/buildx';
import {DownloadVersion} from '../types/buildx/buildx';
import {GitHubRelease} from '../types/github';

export interface InstallOpts {
Expand Down
2 changes: 1 addition & 1 deletion src/docker/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {Cache} from '../cache';
import {Exec} from '../exec';
import {Util} from '../util';

import {ConfigFile} from '../types/docker';
import {ConfigFile} from '../types/docker/docker';

export class Docker {
static get configDir(): string {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/types/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import {components as OctoOpenApiTypes} from '@octokit/openapi-types';
import {JwtPayload} from 'jwt-decode';

import {BakeDefinition} from './bake';
import {ExportRecordResponse} from './history';
import {BakeDefinition} from './buildx/bake';
import {ExportRecordResponse} from './buildx/history';

export interface GitHubRelease {
id: number;
Expand Down

0 comments on commit 9579e6f

Please sign in to comment.