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

[Feat]Deal with single file #52

Closed
RayJason opened this issue Apr 13, 2023 · 8 comments · Fixed by #53
Closed

[Feat]Deal with single file #52

RayJason opened this issue Apr 13, 2023 · 8 comments · Fixed by #53
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@RayJason
Copy link

Sometimes, I just need to deal with a file instead of a folder.

@scriptex scriptex linked a pull request Apr 13, 2023 that will close this issue
@scriptex scriptex added the enhancement New feature or request label Apr 13, 2023
@scriptex scriptex self-assigned this Apr 13, 2023
@scriptex
Copy link
Owner

Hey, thanks for the feature request. I have implemented and published it. Please install the latest version 2.2.0 which has this new feature.

@RayJason
Copy link
Author

RayJason commented Apr 13, 2023

@scriptex I have upgraded to 2.2.0, but still report an error:

Error: ENOTDIR: not a directory, scandir './icon.svg'

@scriptex
Copy link
Owner

scriptex commented Apr 13, 2023

@RayJason can you please show me how you use the module?
What happens if you try to use it via npx?
Like npx svgo-viewbox --i "PATH_TOYOUR_SVG_FILE"

@RayJason
Copy link
Author

@scriptex Here:
image

@scriptex
Copy link
Owner

Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.

@scriptex scriptex reopened this Apr 13, 2023
@scriptex scriptex added the bug Something isn't working label Apr 13, 2023
@RayJason
Copy link
Author

Okay, I need to investigate this. Unfortunately, I can do this as early as Tuesday.

Have a good weekend

@scriptex
Copy link
Owner

hey, @RayJason, I've published 2.2.1 and tested it - it works for me. Can you please check if it does the job for you as well?

@RayJason
Copy link
Author

hey, @RayJason, I've published 2.2.1 and tested it - it works for me. Can you please check if it does the job for you as well?

It's working!🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants