Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use deploy instead of publish #14

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export default async function deployExecutor(
return runWranglerCommandForProject(
deployOptions,
context,
'pages publish'
'pages deploy'
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default async function deployExecutor(
options: WorkerDeployExecutorSchema,
context: ExecutorContext
) {
return runWranglerCommandForProject(options, context, 'publish');
return runWranglerCommandForProject(options, context, 'deploy');
}
4 changes: 2 additions & 2 deletions packages/nx-cloudflare-wrangler/src/executors/wrangler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function runWranglerCommandForProject(

const wranglerOptions = [];

if (command === 'pages publish') {
if (command === 'pages deploy') {
wranglerOptions.push((options as PagesDeployExecutorSchema).dist);
wranglerOptions.push(
'--project-name="' +
Expand All @@ -52,7 +52,7 @@ export function runWranglerCommandForProject(
);
} else if (command === 'pages dev') {
wranglerOptions.push((options as PagesDeployExecutorSchema).dist);
} else if (command === 'publish') {
} else if (command === 'deploy') {
wranglerOptions.push(
joinPathFragments(
workspaceRoot,
Expand Down