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(cdk/schematics): avoid throwing an error for empty program #27060

Merged
merged 1 commit into from
May 8, 2023

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 8, 2023

Fixes that the ng update schematics were throwing an error if the tsconfig doesn't match any files.

Fixes #27055.

Fixes that the `ng update` schematics were throwing an error if the tsconfig doesn't match any files.

Fixes angular#27055.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels May 8, 2023
@@ -12,6 +12,9 @@ import {FileSystemHost} from './virtual-host';
import {dirname} from 'path';
import {formatDiagnostics} from './diagnostics';

/** Code of the error raised by TypeScript when a tsconfig doesn't match any files. */
const NO_INPUTS_ERROR_CODE = 18003;
Copy link
Member

Choose a reason for hiding this comment

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

This is not exposed right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, it looks like TS doesn't expose an enum of their error codes.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label May 8, 2023
@angular-robot angular-robot bot merged commit 1ce3a3b into angular:main May 8, 2023
angular-robot bot pushed a commit that referenced this pull request May 8, 2023
Fixes that the `ng update` schematics were throwing an error if the tsconfig doesn't match any files.

Fixes #27055.

(cherry picked from commit 1ce3a3b)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(COMPONENT): ng update failes without spec files
2 participants