Skip to content

Commit

Permalink
Updated build to use latest dets
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Feb 23, 2024
1 parent 987037e commit ebd93cc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.16.0

- Fixed error handling with wrong JSON format (#65)
- Removed support for Node.js below 16
- Replaced `request` with `axios`
- Updated dependencies

Expand Down
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const { buildSync } = require('esbuild');

buildSync({
entryPoints: ['src/server/index.ts'],
external: ['bufferutil', 'utf-8-validate'],
external: ['bufferutil', 'utf-8-validate', 'fsevents'],
outdir: resolve(__dirname, 'dist', 'server'),
// minify: true,
bundle: true,
target: 'node14',
target: 'node16',
platform: 'node',
format: 'cjs',
});
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:server:decl": "dets --imports node express --files src/server/index.ts --types src/server/index.ts --out dist/server/index.d.ts",
"build:server:code": "node build.js",
"build:server": "npm run build:server:code && npm run build:server:decl",
"build:utility": "esbuild --bundle utils/index.ts --minify --target=node14 --platform=node --outdir=utils",
"build:utility": "esbuild --bundle utils/index.ts --external:fsevents --minify --target=node16 --platform=node --outdir=utils",
"build:cli": "tsc --project tsconfig.cli.json",
"build": "npm run build:cli && npm run build:utility && npm run build:server"
},
Expand Down Expand Up @@ -74,7 +74,7 @@
"chokidar": "^3.5.3",
"cookie": "^0.4.2",
"cross-env": "^7.0.3",
"dets": "^0.14.1",
"dets": "^0.14.2",
"enzyme-to-json": "^3.6.2",
"esbuild": "^0.20.0",
"express": "^4.18.2",
Expand Down

0 comments on commit ebd93cc

Please sign in to comment.