Closed igor-ribeiro closed 1 year ago
Controlling which folders are skipped sounds like a good idea. PR welcome!
I've updated the recrawl-sync
package to swallow permission errors, so that erasing your lockfile and re-installing should fix that error for you in the meantime.
I can do it. Do we have access to vitest configuration? It looks like this:
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "happy-dom",
setupFiles: ["./test/setup-test-env.ts"],
exclude: ["**/node_modules/**", "**/postgres-data/**"],
},
});
Try reinstalling your dependencies (after deleting lockfile, eg package-lock.json
) first, then we can talk about where the exclude globs should be obtained from.
When using this Remix template a folder called
postgres-data
is created at the root and this plugins tries to scan that folder even if I add it toexclude
config.Debugging I found that the folders to skip are hardcoded here https://github.com/aleclarson/vite-tsconfig-paths/blob/master/src/index.ts#L208
We should be allowed to control which folders to skip.