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

Few files affected on second run #181

Open
Soviut opened this issue Jun 27, 2023 · 0 comments
Open

Few files affected on second run #181

Soviut opened this issue Jun 27, 2023 · 0 comments

Comments

@Soviut
Copy link

Soviut commented Jun 27, 2023

My build looks like

tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json

The tsconfig.build.json extends tsconfig.json to exclude tests.

In my tsconfig.json I have the following config

{
  "compilerOptions": {
    ...
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"],
    }
  },

  "tsc-alias": {
    "verbose": true,
    "resolveFullPaths": true
  }
}

When I delete my /dist directory and run npm run build I get a verbose message saying

tsc-alias info: 89 files were affected!

However, if I re-run npm run build with the existing /dist directory still there, I get

tsc-alias info: 86 files were affected!

And if I do the following on an existing build where I can see the aliases haven't been converted

$ npx tsc-alias
tsc-alias info: 0 files were affected!

Why are fewer files being processed the 2nd time when the /dist directory still exists?

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

1 participant