Skip to content

Commit de7e0bb

Browse files
committed
rename onlyPopulate to onlyPopulateWithoutBuilding
1 parent 61104a5 commit de7e0bb

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/cloudflare/src/cli/args.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getArgs(): {
1010
skipWranglerConfigCheck: boolean;
1111
outputDir?: string;
1212
minify: boolean;
13-
populateCache?: { mode: CacheBindingMode; onlyPopulate: boolean };
13+
populateCache?: { mode: CacheBindingMode; onlyPopulateWithoutBuilding: boolean };
1414
} {
1515
const { skipBuild, skipWranglerConfigCheck, output, noMinify, populateCache, onlyPopulateCache } =
1616
parseArgs({
@@ -63,7 +63,9 @@ export function getArgs(): {
6363
skipWranglerConfigCheck ||
6464
["1", "true", "yes"].includes(String(process.env.SKIP_WRANGLER_CONFIG_CHECK)),
6565
minify: !noMinify,
66-
populateCache: populateCache ? { mode: populateCache, onlyPopulate: !!onlyPopulateCache } : undefined,
66+
populateCache: populateCache
67+
? { mode: populateCache, onlyPopulateWithoutBuilding: !!onlyPopulateCache }
68+
: undefined,
6769
};
6870
}
6971

packages/cloudflare/src/cli/build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function build(projectOpts: ProjectOptions): Promise<void> {
6363
logger.info(`@opennextjs/cloudflare version: ${cloudflare}`);
6464
logger.info(`@opennextjs/aws version: ${aws}`);
6565

66-
if (projectOpts.populateCache?.onlyPopulate) {
66+
if (projectOpts.populateCache?.onlyPopulateWithoutBuilding) {
6767
populateCache(options, config, projectOpts.populateCache.mode);
6868
return;
6969
}

packages/cloudflare/src/cli/project-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export type ProjectOptions = {
1111
skipWranglerConfigCheck: boolean;
1212
// Whether minification of the worker should be enabled
1313
minify: boolean;
14-
populateCache?: { mode: CacheBindingMode; onlyPopulate: boolean };
14+
populateCache?: { mode: CacheBindingMode; onlyPopulateWithoutBuilding: boolean };
1515
};

0 commit comments

Comments
 (0)