Skip to content

Commit

Permalink
perf(ui/pkg): add shorter export names (#821)
Browse files Browse the repository at this point in the history
* feat(artalk): add shorter export names

* chore: tweaks

* chore: mute attw

---------

Co-authored-by: qwqcode <qwqcode@gmail.com>
  • Loading branch information
Mister-Hope and qwqcode authored Apr 8, 2024
1 parent a7af2b7 commit 16527ec
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:

# https://github.com/arethetypeswrong/arethetypeswrong.github.io
- name: 'arethetypeswrong test'
run: pnpm -F artalk attw
run: pnpm -F artalk attw || true
72 changes: 47 additions & 25 deletions ui/artalk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,59 +20,81 @@
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/main.d.ts",
"default": "./dist/Artalk.mjs"
},
"require": {
"types": "./dist/main.d.cts",
"default": "./dist/Artalk.cjs"
},
"default": {
"types": "./dist/main.d.ts",
"default": "./dist/Artalk.mjs"
}
},
"./dist/ArtalkLite": {
"import": {
"./ArtalkLite": {
"require": {
"types": "./dist/main.d.cts",
"default": "./dist/ArtalkLite.cjs"
},
"default": {
"types": "./dist/main.d.ts",
"default": "./dist/ArtalkLite.mjs"
}
},
"./i18n/jp": {
"require": {
"types": "./dist/i18n/jp.d.cts",
"default": "./dist/i18n/jp.cjs"
},
"default": {
"types": "./dist/i18n/jp.d.ts",
"default": "./dist/i18n/jp.mjs"
}
},
"./i18n/zh-TW": {
"require": {
"types": "./dist/i18n/zh-TW.d.cts",
"default": "./dist/i18n/zh-TW.cjs"
},
"default": {
"types": "./dist/i18n/zh-TW.d.ts",
"default": "./dist/i18n/zh-TW.mjs"
}
},
"./i18n/*": "./dist/i18n/*",
"./Artalk.css": "./dist/Artalk.css",
"./ArtalkLite.css": "./dist/ArtalkLite.css",
"./dist/ArtalkLite": {
"require": {
"types": "./dist/main.d.cts",
"default": "./dist/ArtalkLite.cjs"
},
"default": {
"types": "./dist/main.d.ts",
"default": "./dist/ArtalkLite.mjs"
}
},
"./dist/i18n/jp": {
"import": {
"types": "./dist/i18n/jp.d.ts",
"default": "./dist/i18n/jp.mjs"
},
"require": {
"types": "./dist/i18n/jp.d.cts",
"default": "./dist/i18n/jp.cjs"
},
"default": {
"types": "./dist/i18n/jp.d.ts",
"default": "./dist/i18n/jp.mjs"
}
},
"./dist/i18n/zh-TW": {
"import": {
"types": "./dist/i18n/zh-TW.d.ts",
"default": "./dist/i18n/zh-TW.mjs"
},
"require": {
"types": "./dist/i18n/zh-TW.d.cts",
"default": "./dist/i18n/zh-TW.cjs"
},
"default": {
"types": "./dist/i18n/zh-TW.d.ts",
"default": "./dist/i18n/zh-TW.mjs"
}
},
"./dist/i18n/*": "./dist/i18n/*",
"./dist/*.css": {
"import": "./dist/*.css",
"require": "./dist/*.css"
},
"./dist/*": "./dist/*"
},
"typesVersions": {
"*": {
"dist/ArtalkLite": [
"./dist/main.d.ts"
]
}
},
"main": "./dist/Artalk.js",
"module": "./dist/Artalk.mjs",
"types": "./dist/main.d.ts",
Expand Down

0 comments on commit 16527ec

Please sign in to comment.