Skip to content

Commit

Permalink
fix(cli): Stop pinning jest in TS init template
Browse files Browse the repository at this point in the history
upstream issue has been resolved by now and the fixed version currently fails initializing a cdktf project as ts-node requires a newer version
  • Loading branch information
ansgarm committed May 4, 2022
1 parent 91e226c commit c59e5b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cdktf-cli/templates/typescript/.hooks.sscaff.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ exports.post = ctx => {
if (!npm_cdktf) { throw new Error(`missing context "npm_cdktf"`); }

installDeps([npm_cdktf, `constructs@10`]);
// make sure we have at least https://github.com/facebook/jest/releases/tag/v27.4.3 due to https://github.com/facebook/jest/issues/12098
installDeps(['@types/node', 'typescript', 'jest@^27.4.3', '@types/jest', "ts-jest", "ts-node"], true);
installDeps(['@types/node', 'typescript', 'jest', '@types/jest', "ts-jest", "ts-node"], true);

console.log(readFileSync('./help', 'utf-8'));
};
Expand Down

0 comments on commit c59e5b3

Please sign in to comment.