|
|
@@ -147,6 +147,7 @@ function readJsonFile(path, encoding = 'utf8') {
|
|
|
console.log(cli.blue('[INFO]'), 'Creating startup script');
|
|
|
pkgJson = yield readJsonFile(path_1.default.resolve(projectRootDir, 'package.json'));
|
|
|
pkgJson.scripts = Object.assign(Object.assign({}, pkgJson.scripts), { build: 'tsc -b', start: 'npm run build && node dist/index.js' });
|
|
|
+ yield util_1.default.promisify(fs_1.default.writeFile)(path_1.default.resolve(projectRootDir, 'package.json'), JSON.stringify(pkgJson, null, 2));
|
|
|
console.log(cli.blue('[INFO]'), 'Cleanup: Removing .clone directory...');
|
|
|
yield util_1.default.promisify(fs_1.default.rm)(cloneDir, { force: true, recursive: true });
|
|
|
console.log();
|