core-ds / arui-scripts

Simple but flexible tool to build react applications with nodejs server
21 stars 6 forks source link

fix(arui-scripts): add optional chaining for jest tsconfigs handler #263

Closed kiskv closed 4 weeks ago

kiskv commented 4 weeks ago

Происходит падение, если в tsconfig отсутствует поле compilerOptions. Такое может быть в случае если tsconfig расширяется из другого места.

Ошибка:

tsConfigPaths = tsConfig.config.compilerOptions.paths || {};
                                                    ^
TypeError: Cannot read properties of undefined (reading 'paths')
changeset-bot[bot] commented 4 weeks ago

🦋 Changeset detected

Latest commit: 6b22d44f6b3e8e6c5a6e2ef7454a5fbff2c5d0e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | --------------- | ----- | | arui-scripts | Patch | | example-modules | Patch | | example | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

heymdall-legal commented 4 weeks ago

Все супер, но чтоб зарелизилось - надо добавить changeset