Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion cli/src/commands/router/commands/plugin/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export default (opts: BaseCommandOptions) => {
const cwd = process.cwd();

const projectDir = resolve(cwd, options.directory, options.project);
const pluginDir = resolve(cwd, projectDir, name);

const pluginDir = (options.project)
? resolve(cwd, projectDir, 'plugins', name)
: resolve(cwd, projectDir, name);

const originalPluginName = name;

name = upperFirst(camelCase(name));
Expand Down
4 changes: 2 additions & 2 deletions cli/src/commands/router/commands/plugin/templates/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go 1.24.1

require (
github.com/stretchr/testify v1.10.0
github.com/wundergraph/cosmo/router-plugin v0.0.0-20250519204649-84818397f974 // v0.1.0
github.com/wundergraph/cosmo/router-plugin v0.0.0-20250824152218-8eebc34c4995 // v0.4.1
google.golang.org/grpc v1.68.1
google.golang.org/protobuf v1.36.5
)
Expand Down Expand Up @@ -55,7 +55,7 @@ func main() {
s.RegisterService(&service.{serviceName}_ServiceDesc, &{serviceName}{
nextID: 1,
})
})
}, routerplugin.WithTracing())

if err != nil {
log.Fatalf("failed to create router plugin: %v", err)
Expand Down
Loading