Skip to content

Conversation

@paul-marechal
Copy link
Contributor

The logic currently ignores a module prefix when filtering packages
passed via --only=. This is quite confusing: to only rebuild
something like @theia/node-pty we must pass --only=node-pty.

This commit adds a lookup using the prefixed name.

@paul-marechal
Copy link
Contributor Author

I'm not sure if I should just replace .includes(modulePath) by .includes(`${prefix}{modulePath}`) as it might be breaking?

malept
malept previously requested changes Sep 2, 2021
Copy link
Member

@malept malept left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs tests for regression purposes.

@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2021

Codecov Report

Merging #850 (2d375d0) into master (26cae3d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #850   +/-   ##
=======================================
  Coverage   75.89%   75.89%           
=======================================
  Files          17       17           
  Lines         672      672           
  Branches      130      130           
=======================================
  Hits          510      510           
  Misses        118      118           
  Partials       44       44           
Impacted Files Coverage Δ
src/rebuild.ts 66.29% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26cae3d...2d375d0. Read the comment docs.

The logic currently ignores a module prefix when filtering packages
passed via `--only=`. This is quite confusing: to only rebuild
something like `@theia/node-pty` we must pass `--only=node-pty`.

This commit adds a lookup using the prefixed name.
@paul-marechal paul-marechal force-pushed the mp/fix-only branch 2 times, most recently from 2d375d0 to f23eddf Compare September 6, 2021 03:20
@paul-marechal
Copy link
Contributor Author

I added tests, but I'll need to close this PR temporarily, I will re-open when ready.

@paul-marechal
Copy link
Contributor Author

Ready to go again.

@erickzhao
Copy link
Member

drafting due to conflicts. i think i can work on resolving them and getting this shipped.

@erickzhao erickzhao marked this pull request as draft November 7, 2023 22:40
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

Successfully merging this pull request may close these issues.

4 participants