Commit 8e31dd9
fix(cli): use dynamic import variable to avoid tsc resolution of optional @objectstack/service-i18n
The CLI package uses tsc (not tsup) for building, so a static string
literal in `import('@objectstack/service-i18n')` causes TS2307 because
the package isn't in CLI's dependencies. Using a variable indirection
prevents tsc from attempting module resolution at compile time.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 32e46d0 commit 8e31dd9
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
0 commit comments