Skip to content

Commit

Permalink
Improved build
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jan 30, 2024
2 parents 5c271cb + 699b8e3 commit 3e281a0
Show file tree
Hide file tree
Showing 16 changed files with 7,402 additions and 3,515 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm install
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm install
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm install
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Changelog

## 0.15.4 (tbd)
## 0.15.5

- Fixed the `x-forwarded-host` header value
- Updated dependencies
- Updated build to use esbuild instead of ncc

## 0.15.4

- Fixed issue with bundled `package.json` reference

## 0.15.3

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 - 2023 Florian Rappl
Copyright (c) 2018 - 2024 Florian Rappl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 13 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { resolve } = require('path');
const { buildSync } = require('esbuild');

buildSync({
entryPoints: ['src/server/index.ts'],
external: ['bufferutil', 'utf-8-validate'],
outdir: resolve(__dirname, 'dist', 'server'),
// minify: true,
bundle: true,
target: 'node14',
platform: 'node',
format: 'cjs',
});
Loading

0 comments on commit 3e281a0

Please sign in to comment.