-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 2dbf6c7.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files☔ View full report in Codecov by Sentry. |
a526289
to
218ffa6
Compare
@@ -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) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'; |
There was a problem hiding this comment.
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:
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
218ffa6
to
c80db98
Compare
c80db98
to
2dbf6c7
Compare
Proposed change
Related issues
- No issue associated -