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: build builder and schematics for o3r lib #2727

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

Conversation

vscaiceanu-1a
Copy link
Member

@vscaiceanu-1a vscaiceanu-1a requested a review from a team as a code owner January 23, 2025 14:11
Copy link

nx-cloud bot commented Jan 23, 2025

View your CI Pipeline Execution ↗ for commit 2dbf6c7.

Command Status Duration Result
nx run-many --target=test-int ❌ Failed 42m 20s View ↗
nx run-many --target=test-e2e ✅ Succeeded 7m 50s View ↗
nx run-many --target=build --projects=eslint-pl... ✅ Succeeded 2s View ↗
nx run-many --target=publish --nx-bail --userco... ✅ Succeeded 1m 49s View ↗
nx affected --target=test --collectCoverage ✅ Succeeded 49s View ↗
nx affected --target=lint ✅ Succeeded 2m 50s View ↗
nx run-many --target=documentation ✅ Succeeded 1m 19s View ↗
nx run-many --target=build ✅ Succeeded 1m 52s View ↗
Additional runs (3) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-01-27 10:37:24 UTC

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.29%. Comparing base (0799d0e) to head (2dbf6c7).
Report is 4 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.

@vscaiceanu-1a vscaiceanu-1a force-pushed the fix/add-lib-scripts branch 2 times, most recently from a526289 to 218ffa6 Compare January 23, 2025 15:55
@@ -31,11 +31,12 @@ Otherwise, use the error message as guidance.`);
* @param options
*/
function ngAddFn(options: NgAddSchematicsSchema): Rule {
return async (tree, context) => {
return async (tree, _context) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return async (tree, _context) => {
return async (tree) => {

const tsConfig = ts.parseConfigFileTextToJson('/tsconfig.json', tree.readText('/tsconfig.json')).config;
if (tsConfig.compilerOptions?.noPropertyAccessFromIndexSignature) {
delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;
const tsConfigPath = '/tsconfig.json';
Copy link
Contributor

@kpanot kpanot Jan 23, 2025

Choose a reason for hiding this comment

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

should not be instead something like:

Suggested change
const tsConfigPath = '/tsconfig.json';
const tsConfigPath =['/tsconfig.lib.json', '/tsconfig.app.json', '/tsconfig.json'].filter((file) => tree.exists(file));

and run on all the file found?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is only about the root tsconfig file so there won't be app/lib ones

Copy link
Member Author

Choose a reason for hiding this comment

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

waiting for #2648 to be merged and to adapt this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants