Skip to content

Commit

Permalink
Merge pull request #3504 from continuedev/pe/jb-build-fixes
Browse files Browse the repository at this point in the history
fix: smaller build size for `binary`
  • Loading branch information
Patrick-Erichsen authored Dec 23, 2024
2 parents 5f4ac7a + a045074 commit 272f290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions binary/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ async function installNodeModuleInTempDirAndCopyToCurrent(packageName, toCopy) {
format: "cjs",
platform: "node",
sourcemap: true,
minify: true,
treeShaking: true,
loader: {
// eslint-disable-next-line @typescript-eslint/naming-convention
".node": "file",
Expand Down
3 changes: 1 addition & 2 deletions binary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"scripts": {
"test": "jest",
"build": "node build.js",
"build:dev": "tsc",
"esbuild": "node build.js --esbuild-only"
"build:darwin-x64": "node build.js --os darwin-x64"
},
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit 272f290

Please sign in to comment.