microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.89k stars 595 forks source link

[rush] see files that git ignored as none source file #3117

Closed deepkolos closed 2 years ago

deepkolos commented 2 years ago

Summary

some project does't have one dist or lib dir as output dir, it may output file in place. for example wechat miniprogram

so projectOutputFolderNames is not well enough to describe this scene, but .gitignore can

image

Repro steps

Expected result:

Actual result:

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version?
rushVersion from rush.json?
useWorkspaces from rush.json?
Operating system?
Would you consider contributing a PR?
Node.js version (node -v)?
iclanton commented 2 years ago

This isn't something that our build cache currently supports. The build cache only supports folder names due to ease of cleaning outputs before restoring from cache. The best option would be to configure TypeScript to output into a separate folder from the source files.

If this is a feature that you need, and you would be willing to implement it, we would probably be willing to accept that change.

In the meantime, you can disable the build cache for individual projects via the config/rush-project.json file.