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

Script not accepting wildcards #255

Open
albertnev opened this issue Jun 8, 2023 · 1 comment
Open

Script not accepting wildcards #255

albertnev opened this issue Jun 8, 2023 · 1 comment

Comments

@albertnev
Copy link

I don't know if I'm doing something wrong, if so, please tell me.

If I specify a single file it works fine, but whenever I try to use wildcards it just throws an error:

npx organize-imports-cli src/**/*

node_modules\ts-morph\dist\ts-morph.js:18700
            throw new common.errors.FileNotFoundError(this.fileSystemWrapper.getStandardizedAbsolutePath(filePath));
            ^
...
path: 'C:/myPath/front/src/**/*',
code: 'ENOENT'

It doesn't matter if I use it with an extension at the end, like src/**/*.ts or src/**/*.*. I've also tried to just use a single folder, like src/* and src/*.* without luck. The error is the same in every scenario.

Does this script do not accept wildcards? If I want to organize imports from all files but only under a specific folder, is it possible to do so?

@artursudnik
Copy link

+1

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