Skip to content

Commit 40acf0f

Browse files
committed
🧹 chore: bump version
1 parent 67078d5 commit 40acf0f

File tree

9 files changed

+273
-316
lines changed

9 files changed

+273
-316
lines changed

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.git
2+
.github
23
.gitignore
34
.prettierrc
45
.cjs.swcrc
@@ -19,3 +20,7 @@ CHANGELOG.md
1920
.eslintrc.js
2021
tsconfig.cjs.json
2122
tsconfig.esm.json
23+
tsconfig.dts.json
24+
25+
build.ts
26+
src

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"useTabs": true,
3+
"tabWidth": 4,
4+
"semi": false,
5+
"singleQuote": true,
6+
"trailingComma": "none"
7+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
# 1.1.0 - 16 Jul 2024
3+
Change:
4+
- Add support for Elysia 1.1
5+
6+
7+
# 1.1.0-rc.0 - 12 Jul 2024
8+
Change:
9+
- Add support for Elysia 1.1
10+
11+
212
# 1.0.2 - 18 Mar 2024
313
Change:
414
- Add support for Elysia 1.0

build.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { $ } from 'bun'
2+
import { build, type Options } from 'tsup'
3+
4+
await $`rm -rf dist`
5+
6+
const tsupConfig: Options = {
7+
entry: ['src/**/*.ts'],
8+
splitting: false,
9+
sourcemap: false,
10+
clean: true,
11+
bundle: true
12+
} satisfies Options
13+
14+
await Promise.all([
15+
// ? tsup esm
16+
build({
17+
outDir: 'dist',
18+
format: 'esm',
19+
target: 'node20',
20+
cjsInterop: false,
21+
...tsupConfig
22+
}),
23+
// ? tsup cjs
24+
build({
25+
outDir: 'dist/cjs',
26+
format: 'cjs',
27+
target: 'node20',
28+
// dts: true,
29+
...tsupConfig
30+
})
31+
])
32+
33+
await $`tsc --project tsconfig.dts.json`
34+
35+
await Promise.all([$`cp dist/*.d.ts dist/cjs`])
36+
37+
process.exit()

bun.lockb

32 KB
Binary file not shown.

package.json

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
2-
"name": "@elysiajs/jwt",
3-
"description": "Plugin for Elysia for using JWT Authentication",
4-
"version": "1.0.2",
5-
"author": {
6-
"name": "saltyAom",
7-
"url": "https://github.com/SaltyAom",
8-
"email": "saltyaom@gmail.com"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/elysiajs/elysia-jwt"
13-
},
14-
"main": "./dist/index.js",
15-
"exports": {
16-
"bun": "./dist/index.js",
17-
"node": "./dist/cjs/index.js",
18-
"require": "./dist/cjs/index.js",
19-
"import": "./dist/index.js",
20-
"default": "./dist/index.js"
21-
},
22-
"types": "./dist/index.d.ts",
23-
"bugs": "https://github.com/elysiajs/elysia-jwt/issues",
24-
"homepage": "https://github.com/elysiajs/elysia-jwt",
25-
"keywords": [
26-
"elysia",
27-
"jwt",
28-
"auth",
29-
"authentication"
30-
],
31-
"license": "MIT",
32-
"scripts": {
33-
"dev": "bun run --hot example/index.ts",
34-
"test": "bun test && npm run test:node",
35-
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",
36-
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
37-
"release": "npm run build && npm run test && npm publish --access public"
38-
},
39-
"dependencies": {
40-
"jose": "^4.14.4"
41-
},
42-
"devDependencies": {
43-
"@elysiajs/cookie": "^0.3.0",
44-
"@types/bun": "^1.0.4",
45-
"@types/node": "^20.1.4",
46-
"@typescript-eslint/eslint-plugin": "^6.6.0",
47-
"@typescript-eslint/parser": "^6.6.0",
48-
"elysia": "1.0.2",
49-
"eslint": "^8.40.0",
50-
"rimraf": "4.3",
51-
"typescript": "^5.1.6"
52-
},
53-
"peerDependencies": {
54-
"elysia": ">= 1.0.2"
55-
}
2+
"name": "@elysiajs/jwt",
3+
"description": "Plugin for Elysia for using JWT Authentication",
4+
"version": "1.1.0",
5+
"author": {
6+
"name": "saltyAom",
7+
"url": "https://github.com/SaltyAom",
8+
"email": "saltyaom@gmail.com"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/elysiajs/elysia-jwt"
13+
},
14+
"main": "./dist/cjs/index.js",
15+
"module": "./dist/index.mjs",
16+
"types": "./dist/index.d.ts",
17+
"exports": {
18+
"./package.json": "./package.json",
19+
".": {
20+
"types": "./dist/index.d.ts",
21+
"import": "./dist/index.mjs",
22+
"require": "./dist/cjs/index.js"
23+
}
24+
},
25+
"bugs": "https://github.com/elysiajs/elysia-jwt/issues",
26+
"homepage": "https://github.com/elysiajs/elysia-jwt",
27+
"keywords": [
28+
"elysia",
29+
"jwt",
30+
"auth",
31+
"authentication"
32+
],
33+
"license": "MIT",
34+
"scripts": {
35+
"dev": "bun run --hot example/index.ts",
36+
"test": "bun test && npm run test:node",
37+
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js",
38+
"build": "bun build.ts",
39+
"release": "npm run build && npm run test && npm publish --access public"
40+
},
41+
"dependencies": {
42+
"jose": "^4.14.4"
43+
},
44+
"devDependencies": {
45+
"@types/bun": "1.1.6",
46+
"@typescript-eslint/eslint-plugin": "^6.6.0",
47+
"@typescript-eslint/parser": "^6.6.0",
48+
"elysia": ">= 1.1.0-rc.2",
49+
"eslint": "9.6.0",
50+
"tsup": "^8.1.0",
51+
"typescript": "^5.5.3"
52+
},
53+
"peerDependencies": {
54+
"elysia": ">= 1.1.0"
55+
}
5656
}

0 commit comments

Comments
 (0)