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

fix: the tsconfig spec generated for library contains several issues #2584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cpaulve-1A
Copy link
Contributor

@cpaulve-1A cpaulve-1A commented Dec 12, 2024

Proposed change

Only use composite for library generated for workspace set up with jest.
Ensure path do not target any invalid files.

Related issues

@cpaulve-1A cpaulve-1A requested a review from a team as a code owner December 12, 2024 14:58
Copy link

nx-cloud bot commented Dec 12, 2024

View your CI Pipeline Execution ↗ for commit eca073c.

Command Status Duration Result
nx run-many --target=test-int ✅ Succeeded 1s View ↗
nx run-many --target=test-e2e ✅ Succeeded 7m 50s View ↗
nx run-many --target=build --projects=eslint-pl... ✅ Succeeded <1s View ↗
nx run-many --target=publish --nx-bail --userco... ✅ Succeeded 1m 48s View ↗
nx run-many --target=documentation ✅ Succeeded 1m 19s View ↗
nx affected --target=test --collectCoverage ✅ Succeeded 3s View ↗
nx run ama-sdk-schematics:build-swagger ✅ Succeeded <1s View ↗
nx run-many --target=build ✅ Succeeded 21s View ↗
Additional runs (3) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-01-24 11:28:19 UTC

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.88%. Comparing base (bd1de82) to head (eca073c).
Report is 10 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

fpaul-1A
fpaul-1A previously approved these changes Dec 13, 2024
@cpaulve-1A cpaulve-1A force-pushed the hotfix/2481 branch 2 times, most recently from 90d7ac8 to 3341ac0 Compare January 6, 2025 14:55
vscaiceanu-1a
vscaiceanu-1a previously approved these changes Jan 6, 2025
fpaul-1A
fpaul-1A previously approved these changes Jan 7, 2025
@cpaulve-1A cpaulve-1A force-pushed the hotfix/2481 branch 4 times, most recently from a6bcd4b to cb6f5bd Compare January 20, 2025 18:18
vscaiceanu-1a
vscaiceanu-1a previously approved these changes Jan 21, 2025
@cpaulve-1A cpaulve-1A changed the title [draft] fix: the tsconfig spec generated for library contains several issues fix: the tsconfig spec generated for library contains several issues Jan 21, 2025
@cpaulve-1A cpaulve-1A marked this pull request as ready for review January 21, 2025 17:24
Copy link
Member

@vscaiceanu-1a vscaiceanu-1a left a comment

Choose a reason for hiding this comment

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

accoding to the comment, the lint can be reactivated in
packages/@o3r/eslint-config/schematics/index.it.spec.ts

@@ -162,7 +164,8 @@ function ngAddFn(options: NgAddSchematicsSchema): Rule {

const jestConfigFilesForWorkspace = () => mergeWith(apply(url('./templates/workspace'), [
template({
...options
...options,
tsconfigPath: `./${['tsconfig.base.json', 'tsconfig.json'].find((tsconfigBase) => tree.exists(`./${tsconfigBase}`))}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it happen that none are found ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a recurring logic for our generators so I don't think anyone could use or generators if they don't have any of these files.
Actually, tsconfig.json is generated by angular create itself:
image

Only use composite for library generated for workspace set up with jest.

Ensure path do not target any invalid files.
fpaul-1A
fpaul-1A previously approved these changes Jan 24, 2025
@cpaulve-1A cpaulve-1A enabled auto-merge January 24, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: The tsconfig spec generated for library contains several issues
5 participants