0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

メモ:Projen プロジェクトの projenrc を TypeScript に変更

Posted at

以下の手順で実行。

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

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?