Skip to content

Commit bc0f7be

Browse files
committed
🧹 chore: bump version
1 parent 1633f41 commit bc0f7be

File tree

10 files changed

+122
-897
lines changed

10 files changed

+122
-897
lines changed

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.git
2+
.github
23
.gitignore
34
.prettierrc
5+
.prettierrcignore
46
.cjs.swcrc
57
.es.swcrc
68
bun.lockb
@@ -20,3 +22,7 @@ CHANGELOG.md
2022
.eslintrc.js
2123
tsconfig.cjs.json
2224
tsconfig.esm.json
25+
tsconfig.dts.json
26+
27+
src
28+
build.ts

.prettierrc

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

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.3 - 24 Apr 2024
313
Improvement:
414
- [#26](https://github.com/elysiajs/elysia-static/pull/26) support system paths (windows)

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

34.4 KB
Binary file not shown.

package.json

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

0 commit comments

Comments
 (0)