Skip to content

Commit

Permalink
chore(toolkit): it's alive! (#32949)
Browse files Browse the repository at this point in the history
Fix remaining build failures

### Checklist
- [x] My code adheres to the [CONTRIBUTING
GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and
[DESIGN
GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain authored Jan 15, 2025
1 parent ccccd48 commit 2d7d05c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 67 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/toolkit/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.js
*.js.map
*.d.ts
*.d.ts.map
*.gz
node_modules
dist
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as cxapi from '@aws-cdk/cx-api';
import { CloudAssembly, sanitizePatterns, StackCollection, ExtendedStackSelection as CliExtendedStackSelection } from 'aws-cdk/lib/api/cxapp/cloud-assembly';
import { major } from 'semver';
import { ICloudAssemblySource } from './types';
import { ExtendedStackSelection, StackSelectionStrategy, StackSelector } from './stack-selector';
import { ICloudAssemblySource } from './types';
import { ToolkitError } from '../errors';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/toolkit/lib/api/io/private/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const error = <T>(message: string, code?: IoMessageCode, payload?: T) =>
/**
* Logs an warning level message.
*/
export const warning = <T>(message: string, code?: IoMessageCode, payload?: T) => {
export const warn = <T>(message: string, code?: IoMessageCode, payload?: T) => {
return formatMessage({
level: 'warn',
code,
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/toolkit/lib/api/io/private/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ActionLessRequest<T, U> = Omit<IoRequest<T, U>, 'action'>;
/**
* Helper type for IoHosts that are action aware
*/
export interface ActionlessIoHost extends IIoHost {
export interface ActionAwareIoHost extends IIoHost {
notify<T>(msg: ActionLessMessage<T>): Promise<void>;
requestResponse<T, U>(msg: ActionLessRequest<T, U>): Promise<U>;
}
2 changes: 1 addition & 1 deletion packages/@aws-cdk/toolkit/lib/toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { CachedCloudAssemblySource, IdentityCloudAssemblySource, StackAssembly,
import { StackSelectionStrategy } from './api/cloud-assembly/stack-selector';
import { ToolkitError } from './api/errors';
import { IIoHost, IoMessageCode, IoMessageLevel } from './api/io';
import { asSdkLogger, withAction, ActionAwareIoHost, Timer, confirm, data, error, highlight, info, success, warn } from './api/io/private';
import { asSdkLogger, withAction, Timer, confirm, data, error, highlight, info, success, warn, ActionAwareIoHost } from './api/io/private';

/**
* The current action being performed by the CLI. 'none' represents the absence of an action.
Expand Down

0 comments on commit 2d7d05c

Please sign in to comment.