Skip to content

Commit

Permalink
fix: generation of publish command (#11)
Browse files Browse the repository at this point in the history
* fix: generation of publish command

* fix: failing tests
  • Loading branch information
nacho-vazquez authored Aug 6, 2023
1 parent 45ee952 commit a2bc232
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/plugins/nx-cloudflare/executors.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Serve cloudflare worker locally"
},
"publish": {
"implementation": "./src/executors/publish/publish",
"implementation": "./src/executors/publish/publish.impl",
"schema": "./src/executors/publish/schema.json",
"description": "Publish worker to Cloudflare"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { convertNxExecutor } from '@nx/devkit';

import esbuildExecutor from './publish.impl';

export default convertNxExecutor(esbuildExecutor);
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ describe('app', () => {
},
},

deploy: {
executor: '@naxodev/nx-cloudflare:deploy',
publish: {
executor: '@naxodev/nx-cloudflare:publish',
},
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function addTargets(tree: Tree, options: NormalizedSchema) {
},
},

deploy: {
executor: '@naxodev/nx-cloudflare:deploy',
publish: {
executor: '@naxodev/nx-cloudflare:publish',
},
};

Expand Down

0 comments on commit a2bc232

Please sign in to comment.