Skip to content

Commit 75717b2

Browse files
committed
build: getting pkg working
1 parent 71a9df8 commit 75717b2

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
},
4949
"pkg": {
5050
"assets": [
51-
"dist/**/*.json"
51+
"dist/**/*.json",
52+
"node_modules/tslib/**/*.js",
53+
"node_modules/tsyringe/**/*.js",
54+
"node_modules/uWebSockets.js/**/*.js"
5255
],
5356
"scripts": [
5457
"dist/lib/workers/worker.js"

utils.nix

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,29 @@ rec {
6969
'';
7070
});
7171
pkgBuilds = {
72-
"3.5" = {
72+
"3.4" = {
7373
"linux-x64" = fetchurl {
74-
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.5/node-v18.15.0-linux-x64";
75-
sha256 = "0glr88p9higdwsffg3l243kpixqcf1mb7fawq62rj9n7b275lwx4";
74+
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v18.5.0-linux-x64";
75+
sha256 = "0b7iimvh2gldvbqfjpx0qvzg8d59miv1ca03vwv6rb7c2bi5isi5";
7676
};
7777
"win32-x64" = fetchurl {
78-
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.5/node-v18.15.0-win-x64";
79-
sha256 = "1d51w02m5jv7fgk3brkv3wizn1l75rai1zyq8m9vlm1za1gaha8p";
78+
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v18.5.0-win-x64";
79+
sha256 = "0jxrxgcggpzzx54gaai24zfywhq6fr0nm75iihpn248hv13sdsg0";
8080
};
8181
"macos-x64" = fetchurl {
82-
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.5/node-v18.15.0-macos-x64";
83-
sha256 = "1qcih9l3vncg05glhr45avcz2p5sqk7sp9776q4133xg88s09k0k";
82+
url = "https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v18.5.0-macos-x64";
83+
sha256 = "0dg46fw3ik2wxmhymcj3ih0wx5789f2fhfq39m6c1m52kvssgib3";
8484
};
8585
# No build for v18.15.0 macos-arm64 build
8686
# "macos-arm64" = fetchurl {
87-
# url = "https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v16.15.0-macos-arm64";
88-
# sha256 = "VNCPKjPQjLhzyX8d/FJ/dvDQcA9Gv9YZ6Wf2EcDCARI=";
87+
# url = "https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v18.5.0-macos-arm64";
88+
# sha256 = "1znxssrwcg8nxfr03x1dfz49qq70ik33nj42dxr566vanayifa94";
8989
# };
9090
};
9191
};
9292
pkgCachePath =
9393
let
94-
pkgBuild = pkgBuilds."3.5";
94+
pkgBuild = pkgBuilds."3.4";
9595
fetchedName = n: builtins.replaceStrings ["node"] ["fetched"] n;
9696
in
9797
linkFarm "pkg-cache"

0 commit comments

Comments
 (0)