From e2a7dbb61b69d3211103299b588a1bcf98d58996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Lindkj=C3=A6r?= <33224052+AlexanderLindkjaer@users.noreply.github.com> Date: Fri, 25 Apr 2025 17:26:06 +0200 Subject: [PATCH] Update 6.3. Using TypeScript Aliases - Alias should run after build, not before (#12272) https://docs.medusajs.com/learn/configurations/ts-aliases `npm run resolve:aliases` should run after `medusa build` to change out the aliases in the build output. So instead of the current guide `"build": "npm run resolve:aliases && medusa build"` I should be `"build": "medusa build && npm run resolve:aliases"` --- www/apps/book/app/learn/configurations/ts-aliases/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/apps/book/app/learn/configurations/ts-aliases/page.mdx b/www/apps/book/app/learn/configurations/ts-aliases/page.mdx index 94f5100077..07b9d27b57 100644 --- a/www/apps/book/app/learn/configurations/ts-aliases/page.mdx +++ b/www/apps/book/app/learn/configurations/ts-aliases/page.mdx @@ -21,7 +21,7 @@ Then, add a new `resolve:aliases` script to your `package.json` and update the ` "scripts": { // other scripts... "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", - "build": "npm run resolve:aliases && medusa build" + "build": "medusa build && npm run resolve:aliases" } } ```