Commit 11fc8a0
committed
Publish ESM+CJS; harden exports; target ES2020
Switch to `ts-bridge` so that we can publish this package in both ES
module format and CommonJS module format. This is a breaking change as
consumers will no longer be allowed to import subpaths.
Also ensure that `tsconfig.json` and `tsconfig.build.json` are
compatible with the module template. Namely, switch from a compilation
target of ES2017 to ES2020.
Finally, this also fixes a problem where JavaScript files were not being
properly emitted in `dist/`.1 parent 14a75c2 commit 11fc8a0
File tree
6 files changed
+71
-9
lines changed6 files changed
+71
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
12 | 27 | | |
13 | | - | |
| 28 | + | |
14 | 29 | | |
15 | 30 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 31 | + | |
19 | 32 | | |
20 | 33 | | |
21 | 34 | | |
| |||
51 | 64 | | |
52 | 65 | | |
53 | 66 | | |
| 67 | + | |
54 | 68 | | |
55 | 69 | | |
56 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
| 1679 | + | |
1679 | 1680 | | |
1680 | 1681 | | |
1681 | 1682 | | |
| |||
2071 | 2072 | | |
2072 | 2073 | | |
2073 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
2074 | 2099 | | |
2075 | 2100 | | |
2076 | 2101 | | |
| |||
3036 | 3061 | | |
3037 | 3062 | | |
3038 | 3063 | | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
3039 | 3071 | | |
3040 | 3072 | | |
3041 | 3073 | | |
| |||
3064 | 3096 | | |
3065 | 3097 | | |
3066 | 3098 | | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
3067 | 3106 | | |
3068 | 3107 | | |
3069 | 3108 | | |
| |||
8266 | 8305 | | |
8267 | 8306 | | |
8268 | 8307 | | |
8269 | | - | |
| 8308 | + | |
8270 | 8309 | | |
8271 | 8310 | | |
8272 | 8311 | | |
| |||
0 commit comments