Skip to content

Commit

Permalink
Merge pull request #14 from arnarthor/main
Browse files Browse the repository at this point in the history
Use deploy instead of publish
  • Loading branch information
klaascuvelier authored Oct 6, 2023
2 parents 49cb861 + 1d1347c commit a1421c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit a1421c8

Please sign in to comment.