Skip to content

Commit c6f2875

Browse files
authored
Merge branch 'main' into 20-real-client-ip-based-on-header-trusted-proxies
2 parents 1a2d2e9 + 7b671f5 commit c6f2875

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137
run: npm version ${{ github.event.release.tag_name }} --git-tag-version=false
138138

139139
- name: Copy package.json to build package
140-
run: cp package.json package/package
140+
run: |-
141+
cp package.json package/package
142+
cp package.json package/package/dist
141143
142144
- name: Publish release to NPM
143145
if: "!github.event.release.prerelease"

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"description": "Class-based Node.js web server",
55
"main": "dist/src/index.js",
66
"type": "module",
7+
"files": [
8+
"dist/**/*.js",
9+
"dist/**/*.d.ts",
10+
"dist/*.json"
11+
],
712
"scripts": {
813
"prebuild": "npm run gen:indices",
914
"build": "tsc",

src/Server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Network} from "@cldn/ip";
22
import EventEmitter from "node:events";
33
import http from "node:http";
4-
import packageJson from "../package.json" with {type: "json"};
4+
import packageJson from "./package.json" with {type: "json"};
55
import {Authenticator} from "./auth/Authenticator.js";
66
import {Request} from "./Request.js";
77
import {EmptyResponse} from "./response/index.js";

src/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../package.json

0 commit comments

Comments
 (0)