This could be a glob pattern or just a comma separated list
Should consider whether this method will work with the notify crate. While check --watch isn't currently implemented, it would be good if this addition can work with a watch mode in the future
Note I have not checked side-effect edge cases in #102
Currently there is only one entry path. OP wants to check all files in the directory. Note each entry point also type checks its imports, so this isn't necessary for checking imports and exports.
Rather than running entry_points.for_each(|path| check_project(path, ...)) this needs to be built into the internal ModuleData. So it should be callable as check_project(vec![...]).
Things to think about
Side effects in modules (want to reuse some existing data, but make it distinct)
How to get a Vec<PathBuf> from the glob passed to the CLI
Originally posted by **o-az** November 11, 2023
How can I run `oxidation-compiler` to typecheck multiple files by passing a glob string / directory path?
Works:
```ts
npx oxidation-compiler@latest check src/file.tsx
```
None of these commands check all files:
```ts
npx oxidation-compiler@latest check src/*.tsx
```
```ts
npx oxidation-compiler@latest check src/
```
```ts
npx oxidation-compiler@latest check src/*
```
![CleanShot 2023-11-11 at 10 48 53@2x](https://github.com/kaleidawave/ezno/assets/23618431/be44ae4c-5687-4f07-8af1-32807191aec2)
Update: after #102 have added multiple entry points to the checker. However it is not fully wired up to Ezno's CLI with:
https://github.com/kaleidawave/ezno/blob/1aa77e2aabb9533fb4fe90fa1ac9aaa24136256b/src/cli.rs#L170-L172
The next part (that you can contribute to):
Vec<PathBuf>
from a input path.check --watch
isn't currently implemented, it would be good if this addition can work with a watch mode in the futureRather than running
entry_points.for_each(|path| check_project(path, ...))
this needs to be built into the internalModuleData
. So it should be callable ascheck_project(vec![...])
.Things to think about
Vec<PathBuf>
from the glob passed to the CLIDiscussed in https://github.com/kaleidawave/ezno/discussions/80