fastify / fastify-plugin

Plugin helper for Fastify
MIT License
203 stars 43 forks source link

named exports are not right after renaming the modules #189

Closed Uzlopak closed 2 years ago

Uzlopak commented 2 years ago

Prerequisites

Fastify version

x

Plugin version

4.0.0

Node.js version

x

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

22.04

Description

Lets say we have a package called fastify-kafka. getCamelCase modifies the plugin name to fastifyKafka. Now I rename the module to @fastify/kafka. I would actually still expect that the named export is fastifyKafka. But no. It is @fastify/kafka

Steps to Reproduce

See https://github.com/fastify/fastify-kafka/pull/69

Expected Behavior

I would expect that the name is fastifyKafka