Skip to content

Commit

Permalink
chore: yarn not install typescript in root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
0618 committed Dec 5, 2023
1 parent 4728a4c commit 0d83dd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/create-amplify/src/amplify_project_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export class AmplifyProjectCreator {
private readonly defaultDevPackages = [
'@aws-amplify/backend',
'@aws-amplify/backend-cli',
'typescript@^5.0.0', // TODO: remove this line for yarn since it's installed in amplify/
...(process.env.PACKAGE_MANAGER_EXECUTABLE?.startsWith('yarn')
? []
: ['typescript@^5.0.0']), // For yarn, we install typescript at generateInitialProjectFiles();
];

private readonly defaultProdPackages = ['aws-amplify'];
Expand Down

0 comments on commit 0d83dd0

Please sign in to comment.