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"`
This commit is contained in:
Alexander Lindkjær
2025-04-25 17:26:06 +02:00
committed by GitHub
parent cb92217d03
commit e2a7dbb61b

View File

@@ -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"
}
}
```