Skip to content

Commit 77368b3

Browse files
committed
update_to_5.0.md: yarn ibexa-generate-tsconfig needed anyway
1 parent b60aa94 commit 77368b3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/update_and_migration/from_4.6/update_to_5.0.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,26 @@ composer recipes:install symfony/webpack-encore-bundle --reset --force --yes
214214
composer recipes:install ibexa/commerce --reset --force --yes
215215
```
216216

217+
#### Sort commands
218+
219+
Recipe appends a command to `composer.json`'s `auto-scripts`.
220+
You have to manually resort the commands so the `tsconfig.json` file
221+
is created by `yarn ibexa-generate-tsconfig`
222+
before being used by `ibexa:encore:compile`.
223+
Your `auto-scripts` entry should look like this:
224+
225+
```json
226+
"auto-scripts": {
227+
"cache:clear": "symfony-cmd",
228+
"assets:install %PUBLIC_DIR%": "symfony-cmd",
229+
"yarn install": "script",
230+
"ibexa:encore:compile --config-name app": "symfony-cmd",
231+
"bazinga:js-translation:dump %PUBLIC_DIR%/assets --merge-domains": "symfony-cmd",
232+
"yarn ibexa-generate-tsconfig": "script",
233+
"ibexa:encore:compile": "symfony-cmd"
234+
},
235+
```
236+
217237
#### Remove Ibexa Icons
218238

219239
Remove from your `config/bundles.php` the line about `IbexaIconsBundle`.

0 commit comments

Comments
 (0)