fix: Commands loading entrypoints (#7404)

* fix: enable worker mode when executing user and migrate commands

* refactor: do not enable worker mode for migrate command

* refactor: auto detect is application is using ts-node

* refactor: remove directories node from config

* style: update comments next to enabling worker mode
This commit is contained in:
Harminder Virk
2024-05-22 19:31:13 +05:30
committed by GitHub
parent c198e2329c
commit 965a50d483
5 changed files with 18 additions and 25 deletions
@@ -40,7 +40,7 @@ export type AdminOptions = {
/**
* Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
* and returns the modified configuration. The default value is `undefined`.
*
*
* @privateRemarks TODO Add example
*/
vite?: (config: InlineConfig) => InlineConfig
@@ -401,9 +401,9 @@ export type ProjectConfigOptions = {
* // ...
* }
* ```
*
*
* @deprecated use {@link http }'s `compression` property instead.
*
*
*/
http_compression?: HttpCompressionOptions
@@ -751,7 +751,7 @@ export type ConfigModule = {
/**
* Admin dashboard configurations.
*
*
* @example
* ```js title="medusa-config.js"
* module.exports = {
@@ -875,16 +875,6 @@ export type ConfigModule = {
* :::
*/
featureFlags: Record<string, boolean | string>
/**
* @ignore
*
* @privateRemarks
* Since this is a temporary config, maybe let's not include it in the generated reference for now.
*/
directories?: {
srcDir?: string
}
}
export type PluginDetails = {