organize-imports-cli icon indicating copy to clipboard operation
organize-imports-cli copied to clipboard

Script not accepting wildcards

Open albertnev opened this issue 1 year ago • 1 comments

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?

albertnev avatar Jun 08 '23 09:06 albertnev

+1

artursudnik avatar Sep 22 '23 14:09 artursudnik