Skip to content

Commit 0bd53e0

Browse files
committed
refactor! commands dir
1 parent 31134d7 commit 0bd53e0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/cloudflare/src/cli/deploy/deploy.ts renamed to packages/cloudflare/src/cli/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { BuildOptions } from "@opennextjs/aws/build/helper.js";
22
import { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
33

4-
import { populateCache } from "../populate-cache/populate-cache.js";
54
import { getWranglerEnvironmentFlag, runWrangler } from "../utils/run-wrangler.js";
5+
import { populateCache } from "./populate-cache.js";
66

77
export async function deploy(
88
options: BuildOptions,

packages/cloudflare/src/cli/populate-cache/populate-cache.ts renamed to packages/cloudflare/src/cli/commands/populate-cache.ts

File renamed without changes.

packages/cloudflare/src/cli/preview/preview.ts renamed to packages/cloudflare/src/cli/commands/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { BuildOptions } from "@opennextjs/aws/build/helper.js";
22
import { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
33

4-
import { populateCache } from "../populate-cache/populate-cache.js";
54
import { getWranglerEnvironmentFlag, runWrangler } from "../utils/run-wrangler.js";
5+
import { populateCache } from "./populate-cache.js";
66

77
export async function preview(
88
options: BuildOptions,

packages/cloudflare/src/cli/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import logger from "@opennextjs/aws/logger.js";
1010
import { Arguments, getArgs } from "./args.js";
1111
import { build } from "./build/build.js";
1212
import { createOpenNextConfigIfNotExistent, ensureCloudflareConfig } from "./build/utils/index.js";
13-
import { deploy } from "./deploy/deploy.js";
14-
import { populateCache } from "./populate-cache/populate-cache.js";
15-
import { preview } from "./preview/preview.js";
13+
import { deploy } from "./commands/deploy.js";
14+
import { populateCache } from "./commands/populate-cache.js";
15+
import { preview } from "./commands/preview.js";
1616

1717
const nextAppDir = process.cwd();
1818

0 commit comments

Comments
 (0)