Skip to content

Commit

Permalink
perf(ui/build): better dts generation
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Dec 18, 2023
1 parent d47a397 commit 3577fe4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 9

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- uses: pnpm/action-setup@v2
with:
version: 9

- name: Install Dependencies
run: pnpm --dir ./ui install --frozen-lockfile

Expand Down
4 changes: 2 additions & 2 deletions ui/packages/artalk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"unpkg": "./dist/Artalk.iife.js",
"jsdelivr": "./dist/Artalk.iife.js",
"module": "./dist/Artalk.es.js",
"types": "./dist/src/main.d.ts",
"typings": "./dist/src/main.d.ts",
"types": "./dist/main.d.ts",
"typings": "./dist/main.d.ts",
"scripts": {
"dev": "vite",
"build": "vite build && pnpm build:lite && pnpm build:i18n",
Expand Down
3 changes: 2 additions & 1 deletion ui/packages/artalk/vite-base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default defineConfig({
}),
dts({
// @see https://github.com/qmhc/vite-plugin-dts/blob/main/CHANGELOG.md#breaking-changes
copyDtsFiles: true
copyDtsFiles: true,
rollupTypes: true,
})
],
})

0 comments on commit 3577fe4

Please sign in to comment.