Skip to content

Commit 23c4adf

Browse files
committed
refactor: rename tsconfig.build files in examples
1 parent a18a3d7 commit 23c4adf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cli/generators/example/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const chalk = require('chalk');
1010
const downloadAndExtractExample = require('./downloader');
1111
const path = require('path');
1212
const utils = require('../../lib/utils');
13+
const fs = require('fs-extra');
1314

1415
const EXAMPLES = {
1516
todo: 'Tutorial example on how to build an application with LoopBack 4.',
@@ -94,6 +95,10 @@ module.exports = class extends BaseGenerator {
9495
const cwd = process.cwd();
9596
const absOutDir = await downloadAndExtractExample(this.exampleName, cwd);
9697
this.outDir = path.relative(cwd, absOutDir);
98+
fs.rename(
99+
`${this.outDir}/tsconfig.build.json`,
100+
`${this.outDir}/tsconfig.json`,
101+
);
97102
}
98103

99104
install() {

0 commit comments

Comments
 (0)