Skip to content

Commit

Permalink
feat: add typeorm command wrapper to package.json in project templa…
Browse files Browse the repository at this point in the history
…te (#8081)

* feat: add `typeorm` command wrapper to package.json in project template

* style: fix comma style in InitCommand (PR #8081)
  • Loading branch information
tetradice committed Nov 8, 2021
1 parent 6929ae3 commit 19d4a91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/InitCommand.ts
Expand Up @@ -600,7 +600,8 @@ Steps to run this project:

if (!packageJson.scripts) packageJson.scripts = {};
Object.assign(packageJson.scripts, {
start: /*(docker ? "docker-compose up && " : "") + */"ts-node src/index.ts"
start: /*(docker ? "docker-compose up && " : "") + */"ts-node src/index.ts",
typeorm: "node --require ts-node/register ./node_modules/typeorm/cli.js"
});
return JSON.stringify(packageJson, undefined, 3);
}
Expand Down

0 comments on commit 19d4a91

Please sign in to comment.