fix(medusa,framework): HMR file watch (#14390)

This commit is contained in:
Carlos R. L. Rodrigues
2025-12-27 15:52:38 +01:00
committed by GitHub
parent caa561badf
commit d347e369ce
5 changed files with 15 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/framework": patch
"@medusajs/medusa": patch
---
fix(medusa,framework): hmr file watch
+1 -1
View File
@@ -79,7 +79,7 @@
"@medusajs/utils": "2.12.3", "@medusajs/utils": "2.12.3",
"@medusajs/workflows-sdk": "2.12.3", "@medusajs/workflows-sdk": "2.12.3",
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"chokidar": "^3.5.3", "chokidar": "^4.0.3",
"compression": "^1.8.1", "compression": "^1.8.1",
"connect-redis": "5.2.0", "connect-redis": "5.2.0",
"cookie-parser": "^1.4.6", "cookie-parser": "^1.4.6",
@@ -37,10 +37,10 @@ export class Compiler {
this.#adminOnlyDistFolder = path.join(this.#projectRoot, ".medusa/admin") this.#adminOnlyDistFolder = path.join(this.#projectRoot, ".medusa/admin")
this.#pluginsDistFolder = path.join(this.#projectRoot, ".medusa/server") this.#pluginsDistFolder = path.join(this.#projectRoot, ".medusa/server")
this.#backendIgnoreFiles = [ this.#backendIgnoreFiles = [
"/integration-tests/", "integration-tests",
"/test/", "test",
"/unit-tests/", "unit-tests",
"/src/admin/", "src/admin",
] ]
} }
@@ -495,7 +495,7 @@ export class Compiler {
"dist", "dist",
"static", "static",
"private", "private",
".medusa/**/*", ".medusa",
...this.#backendIgnoreFiles, ...this.#backendIgnoreFiles,
], ],
}) })
+2 -2
View File
@@ -182,8 +182,8 @@ export default async function ({ types, directory }) {
"dist", "dist",
"static", "static",
"private", "private",
"src/admin/**/*", "src/admin",
".medusa/**/*", ".medusa",
], ],
}) })
+1 -1
View File
@@ -3631,7 +3631,7 @@ __metadata:
"@medusajs/utils": 2.12.3 "@medusajs/utils": 2.12.3
"@medusajs/workflows-sdk": 2.12.3 "@medusajs/workflows-sdk": 2.12.3
"@types/express": ^4.17.21 "@types/express": ^4.17.21
chokidar: ^3.5.3 chokidar: ^4.0.3
compression: ^1.8.1 compression: ^1.8.1
connect-redis: 5.2.0 connect-redis: 5.2.0
cookie-parser: ^1.4.6 cookie-parser: ^1.4.6