Skip to content

Commit e5a9826

Browse files
Add a tsconfig to template to ensure VSCode uses the same settings
1 parent 8daadf6 commit e5a9826

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

yeoman-generator/src/app/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export default class extends Generator {
1616
this.templatePath("configuration.json"),
1717
this.destinationPath("configuration.json")
1818
);
19+
this.fs.copyTpl(
20+
this.templatePath("tsconfig.json"),
21+
this.destinationPath("tsconfig.json")
22+
);
1923
}
2024

2125
async installSdkPackage() {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/@tsconfig/node18/tsconfig.json"
3+
}

0 commit comments

Comments
 (0)