Skip to content

Commit 0d83dd0

Browse files
committed
chore: yarn not install typescript in root folder
1 parent 4728a4c commit 0d83dd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/create-amplify/src/amplify_project_creator.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export class AmplifyProjectCreator {
1414
private readonly defaultDevPackages = [
1515
'@aws-amplify/backend',
1616
'@aws-amplify/backend-cli',
17-
'typescript@^5.0.0', // TODO: remove this line for yarn since it's installed in amplify/
17+
...(process.env.PACKAGE_MANAGER_EXECUTABLE?.startsWith('yarn')
18+
? []
19+
: ['typescript@^5.0.0']), // For yarn, we install typescript at generateInitialProjectFiles();
1820
];
1921

2022
private readonly defaultProdPackages = ['aws-amplify'];

0 commit comments

Comments
 (0)