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

chore(toolkit): it's alive! #32949

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading