Commit 943891e
committed
fix(localizations): Fix building of retheme subpath exports
Before the localizations subpath exports change
we had a single entrypoint, the `index`. Based
on the CLERK_RETHEME env we were using the
index.retheme.ts or the index.ts as entrypoint
during build. To support that type of conditional
output for all the exported subpaths we need to
either define a callback to replace the *.retheme
files with the *.ts files or conditional choose them
in buiild configuration.
Due to some issues with the tsup `onSuccess` callback
i manually defined all the subpath exports.
We need to be careful in the future and add the new
localization files in both package.json#files, tsup.config.ts
and in subpaths.mjs file to support subpath
exports successfully1 parent 56d30c4 commit 943891e
File tree
2 files changed
+31
-3
lines changed- .changeset
- packages/localizations
2 files changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
10 | 36 | | |
11 | 37 | | |
12 | 38 | | |
| |||
0 commit comments