Skip to content

Commit f7e3a5a

Browse files
authored
fix: add export conditions for exported paths (#6)
1 parent 3674ee7 commit f7e3a5a

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 20
1919
always-auth: true
2020
registry-url: https://registry.npmjs.org
2121

2222
- uses: pnpm/action-setup@v4
2323
with:
24-
version: 8.15.6
24+
version: 9.14.2
2525

2626
- name: Install dependencies
2727
run: pnpm install

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
token: ${{ secrets.GH_ADMIN_TOKEN }}
1616

1717
- name: Set up Node.js
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: 20
2121
always-auth: true
@@ -28,7 +28,7 @@ jobs:
2828
2929
- uses: pnpm/action-setup@v4
3030
with:
31-
version: 8.15.6
31+
version: 9.14.2
3232

3333
- name: Install dependencies
3434
run: pnpm install

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
"version": "0.1.5",
55
"description": "Utility for creating HTTP and WebSocket servers for testing",
66
"main": "./lib/index.js",
7+
"exports": {
8+
"./http": {
9+
"types": "./lib/http.d.ts",
10+
"default": "./lib/http.js"
11+
},
12+
"./ws": {
13+
"types": "./lib/ws.d.ts",
14+
"default": "./lib/ws.js"
15+
},
16+
"./package.json": "./package.json"
17+
},
718
"files": [
819
"./lib",
920
"./http",
@@ -59,4 +70,4 @@
5970
"undici": "^6.19.8",
6071
"vitest": "^3.1.2"
6172
}
62-
}
73+
}

0 commit comments

Comments
 (0)