Skip to content

Commit

Permalink
fixup! feat(cli): build based on configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Oct 4, 2024
1 parent f2c3330 commit f5ffc5e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions apps/cli/src/builder/directory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs-extra";
import path from "path";
import { DirectoryDriveConfig } from "../config";
import { execaDockerFallback } from "../exec";
import { DirectoryDriveConfig } from "../config.js";
import { execaDockerFallback } from "../exec.js";

export const build = async (
name: string,
Expand Down
6 changes: 3 additions & 3 deletions apps/cli/src/builder/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import fs from "fs-extra";
import path from "path";
import { finished } from "stream/promises";
import tmp from "tmp";
import { tarToExt } from ".";
import { DockerDriveConfig } from "../config";
import { execaDockerFallback } from "../exec";
import { DockerDriveConfig } from "../config.js";
import { execaDockerFallback } from "../exec.js";
import { tarToExt } from "./index.js";

type ImageBuildOptions = Pick<
DockerDriveConfig,
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/src/builder/empty.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs-extra";
import path from "path";
import { EmptyDriveConfig } from "../config";
import { execaDockerFallback } from "../exec";
import { EmptyDriveConfig } from "../config.js";
import { execaDockerFallback } from "../exec.js";

export const build = async (
name: string,
Expand Down
12 changes: 6 additions & 6 deletions apps/cli/src/builder/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { execaDockerFallback, OptionsDockerFallback } from "../exec";
import { execaDockerFallback, OptionsDockerFallback } from "../exec.js";

export { build as buildDirectory } from "./directory";
export { build as buildDocker } from "./docker";
export { build as buildEmpty } from "./empty";
export { build as buildNone } from "./none";
export { build as buildTar } from "./tar";
export { build as buildDirectory } from "./directory.js";
export { build as buildDocker } from "./docker.js";
export { build as buildEmpty } from "./empty.js";
export { build as buildNone } from "./none.js";
export { build as buildTar } from "./tar.js";

export const tarToExt = async (
input: string,
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/src/builder/none.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs-extra";
import path from "path";
import { ExistingDriveConfig, getDriveFormat } from "../config";
import { ExistingDriveConfig, getDriveFormat } from "../config.js";

export const build = async (
name: string,
Expand Down
6 changes: 3 additions & 3 deletions apps/cli/src/builder/tar.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from "fs-extra";
import path from "path";
import { tarToExt } from ".";
import { TarDriveConfig } from "../config";
import { execaDockerFallback } from "../exec";
import { TarDriveConfig } from "../config.js";
import { execaDockerFallback } from "../exec.js";
import { tarToExt } from "./index.js";

export const build = async (
name: string,
Expand Down

0 comments on commit f5ffc5e

Please sign in to comment.