Skip to content
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

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Demo API: Remove mikro-orm:* scripts #3515

merged 2 commits into from
Feb 26, 2025

Conversation

nsams
Copy link
Member

@nsams nsams commented Feb 26, 2025

This removes the mikro-orm, mikro-orm:drop and mikro-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 suppose
  • why should abritary commands get it's own script?

Why keep?

  • those two are the commonly used commands
  • devs are used to it

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
johnnyomair
johnnyomair previously approved these changes Feb 26, 2025
Copy link
Collaborator

@johnnyomair johnnyomair left a 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.

dkarnutsch
dkarnutsch previously approved these changes Feb 26, 2025
@nsams nsams dismissed stale reviews from dkarnutsch and johnnyomair via 4f8d04d February 26, 2025 10:25
@nsams
Copy link
Member Author

nsams commented Feb 26, 2025

We already did this in the vivid-planet/comet-starter#391, so I'd go this way.

oh, I wasn't aware of that. we don't need all the reviewers then.

@nsams nsams requested review from johnnyomair and removed request for fraxachun, kaufmo, manuelblum and thomasdax98 February 26, 2025 10:27
@@ -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",
Copy link
Collaborator

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.

@johnnyomair johnnyomair changed the title Demo Api: remove mikro-orm sub-command scripts Demo API: Remove all mikro-orm scripts Feb 26, 2025
@johnnyomair johnnyomair changed the title Demo API: Remove all mikro-orm scripts Demo API: Remove mikro-orm:* scripts Feb 26, 2025
@johnnyomair johnnyomair merged commit f93ebcf into main Feb 26, 2025
11 checks passed
@johnnyomair johnnyomair deleted the nsams-patch-1 branch February 26, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants