-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo API: Remove mikro-orm:*
scripts
#3515
Conversation
This removes the `mikro-orm:drop` and `mikro-orm:migration:generate` from api/package.json scripts. As alternative simply use the mikro-orm script: - `npx run mikro-orm --help` - `npx run mikro-orm schema:drop --run` - `npx run mikro-orm migration:create` Why remove? - `mikro-orm:migration:generate`'s naming is still coming from type-orm I suppose - why should abritary commands get it's own script? Why keep? - those two are the commonly used commands - devs are used to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already did this in the Starter, so I'd go this way.
oh, I wasn't aware of that. we don't need all the reviewers then. |
@@ -17,9 +17,6 @@ | |||
"lint:prettier": "npx prettier --check './**/*.{js,json,md,yml,yaml}'", | |||
"lint:tsc": "tsc --project ./tsconfig.lint.json", | |||
"lint:generated-files-not-modified": "$npm_execpath api-generator && git diff --exit-code HEAD -- src/**/generated", | |||
"mikro-orm": "mikro-orm", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be needed again in next due to MikroORM v6, we (i.e. I 😁) should consider this when merging main into next.
mikro-orm
scripts
mikro-orm
scriptsmikro-orm:*
scripts
This removes the
mikro-orm
,mikro-orm:drop
andmikro-orm:migration:generate
from api/package.json scripts.As alternative simply use the mikro-orm script:
npx mikro-orm --help
npx mikro-orm schema:drop --run
npx mikro-orm migration:create
Why remove?
mikro-orm:migration:generate
's naming is still coming from type-orm I supposeWhy keep?