以下の手順で実行。
1. Add projenrcTs: true to your project.
const project = new awscdk.AwsCdkConstructLibrary({
・・・
projenrcTs: true,
・・・
});
project.synth();
2. Run npx projen.
npx projen
3. Rename .projenrc.js to .projenrc.ts.
git mv .projenrc.js .projenrc.ts
4. Update requires to imports.
const { awscdk, javascript } require('projen');
to
import { awscdk, javascript } from 'projen';
5. Run npx projen.
npx projen
以上。