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:
1 parent
cb92217d03
commit
e2a7dbb61b
1 file changed
+1
-1
@@ -21,7 +21,7 @@ Then, add a new `resolve:aliases` script to your `package.json` and update the `
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
// other scripts...
|
// other scripts...
|
||||||
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user