Skip to content

Commit 97ca66b

Browse files
committed
improve jsr score
1 parent 9ed7652 commit 97ca66b

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/jsr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Publish package
18+
run: npx jsr publish

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* This entry file is for main unplugin.
3+
* @module
4+
*/
5+
16
import type { UnpluginFactory, UnpluginInstance } from 'unplugin'
27
import { createUnplugin } from 'unplugin'
38
import type { IndexHtmlTransformContext, Logger } from 'vite'
@@ -62,6 +67,6 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
6267
},
6368
})
6469

65-
export const unplugin: UnpluginInstance<Options, boolean> = createUnplugin(unpluginFactory)
70+
const unplugin: UnpluginInstance<Options, boolean> = createUnplugin(unpluginFactory)
6671

6772
export default unplugin

0 commit comments

Comments
 (0)