Skip to content

Commit f21f9ff

Browse files
feat: Added tested CommonJS and deno + bun + edge runtime support.
1 parent 1b9397a commit f21f9ff

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,10 @@ jobs:
9191
- run: npm run build --if-present
9292

9393
- run: npm publish --access public --ignore-scripts
94+
95+
- name: Sync jsr.json version from package.json
96+
run: |
97+
node -e "const fs=require('node:fs'); const pkg=JSON.parse(fs.readFileSync('package.json','utf8')); const jsr=JSON.parse(fs.readFileSync('jsr.json','utf8')); jsr.version=pkg.version; fs.writeFileSync('jsr.json', JSON.stringify(jsr, null, 2) + '\n');"
98+
99+
- name: Publish to JSR
100+
run: npx jsr publish

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ npm install @sovereignbase/bytecodec
3131
pnpm add @sovereignbase/bytecodec
3232
# or
3333
yarn add @sovereignbase/bytecodec
34+
# or
35+
bun add @sovereignbase/bytecodec
36+
# or
37+
deno add jsr:@sovereignbase/bytecodec
3438
```
3539

3640
## Usage

jsr.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://jsr.io/schema/config-file.v1.json",
3+
"name": "@sovereignbase/bytecodec",
4+
"version": "1.2.0",
5+
"exports": "./src/index.ts",
6+
"publish": {
7+
"include": [
8+
"package.json",
9+
"src/**/*.ts",
10+
"README.md",
11+
"LICENSE"
12+
]
13+
}
14+
}

0 commit comments

Comments
 (0)