Skip to content

Commit 2272fe4

Browse files
chore(migrate): improve warning (#28025)
This feature is still under development and the warning isn't clear enough on that point. I also added in a small improvement to compare the input language as lowercase. No need to throw an error just because someone types TypeScript instead of typescript. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 3278c19 commit 2272fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/aws-cdk/lib/cdk-toolkit.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ export class CdkToolkit {
703703
* @param options Options for CDK app creation
704704
*/
705705
public async migrate(options: MigrateOptions): Promise<void> {
706-
warning('This is an experimental feature. We make no guarantees about the outcome or stability of the functionality.');
707-
const language = options.language ?? 'typescript';
706+
warning('This is an experimental feature and development on it is still in progress. We make no guarantees about the outcome or stability of the functionality.');
707+
const language = options.language?.toLowerCase() ?? 'typescript';
708708

709709
try {
710710
validateSourceOptions(options.fromPath, options.fromStack);

0 commit comments

Comments
 (0)