Skip to content

Commit c68df9c

Browse files
committed
suppress TS1479 from projects
1 parent ca8761a commit c68df9c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/fresh-lamps-warn.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"unicode-segmenter": patch
3+
---
4+
5+
Override package's defualt type to `"commonjs"` in publishConfig
6+
7+
Since it is still necessary for TypeScript projects.
8+
(See https://github.com/microsoft/TypeScript/issues/54523)
9+
10+
It doesn't actually affects module resolution as we have explicit entries for each modules.
11+
Just workaround.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"./dist/intl-polyfill.cjs"
3131
],
3232
"publishConfig": {
33+
"type": "commonjs",
3334
"exports": {
3435
"./grapheme": {
3536
"types": "./dist/grapheme.d.ts",

0 commit comments

Comments
 (0)