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

socketcluster create screws up app name #572

Closed
MegaGM opened this issue Jan 18, 2023 · 2 comments
Closed

socketcluster create screws up app name #572

MegaGM opened this issue Jan 18, 2023 · 2 comments

Comments

@MegaGM
Copy link
Member

MegaGM commented Jan 18, 2023

Today I've created an app and got something unexpected as a directory name

npm i -g socketcluster@17.2.0
socketcluster create Pyaterochka-013152-SKU-auditor

Expected result

Pyaterochka-013152-SKU-auditor/

Actual result

-pyaterochka013152-s-k-u-auditor/

I've tried something like git bisect but, instead of commits, with socketcluster npm versions.
And have found out that v16.1.3 socketcluster create doesn't screw up app name, and all versions starting from v16.2.0 do.

@MegaGM
Copy link
Member Author

MegaGM commented Jan 18, 2023

So far I've narrowed the possible culprits to
@maartennnn/cli-builder/src/index.js

camelCaseToKebab()
kebabCaseToCamel()

@jondubois
Copy link
Member

Thanks for raising this issue @MegaGM. Nice to see you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants