Skip to content

Commit cef44fe

Browse files
committed
feat: support nested pkg patching in app nix build process
1 parent 95f7887 commit cef44fe

File tree

6 files changed

+13
-33
lines changed

6 files changed

+13
-33
lines changed

app/app.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
perSystem = { pkgs, unstablePkgs, lib, ensureAtRepositoryRoot, ... }:
33
let
44
pkgsDeps = with pkgs; [ pkg-config python3 ];
5-
nodeDeps = with unstablePkgs; [ nodePackages_latest.nodejs ];
5+
nodeDeps = with unstablePkgs; [ nodePackages_latest.nodejs nodePackages_latest."patch-package" ];
66
combinedDeps = pkgsDeps ++ nodeDeps;
77
packageJSON = lib.importJSON ./package.json;
88
in
99
{
1010
packages = {
1111
app = unstablePkgs.buildNpmPackage {
12-
npmDepsHash = "sha256-HBPye1r21Ng1p7JYODzS+S1WJmBYk6n7LkNzZUzAvNI=";
12+
npmDepsHash = "sha256-KIxRD0SCb5yex5HmoZ3BbmNzyt7Y5RuZKdwuc3gtX78=";
1313
src = ./.;
1414
sourceRoot = "app";
15-
npmFlags = [ "--legacy-peer-deps" "--ignore-scripts" ];
15+
npmFlags = [ "--enable-pre-post-scripts" ];
1616
pname = packageJSON.name;
1717
version = packageJSON.version;
1818
nativeBuildInputs = combinedDeps;

app/package-lock.json

+5-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@tanstack/svelte-query": "^5.55.4",
2828
"@tanstack/svelte-table": "^8.20.5",
2929
"@tanstack/svelte-virtual": "^3.10.7",
30-
"@unionlabs/client": "^0.0.24",
30+
"@unionlabs/client": "^0.0.25",
3131
"@wagmi/connectors": "^5.1.11",
3232
"@wagmi/core": "^2.13.5",
3333
"bits-ui": "^0.21.13",

typescript-sdk/bun.lockb

-28 Bytes
Binary file not shown.

typescript-sdk/jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://jsr.io/schema/config-file.v1.json",
33
"name": "@union/client",
4-
"version": "0.0.24",
4+
"version": "0.0.25",
55
"license": "MIT",
66
"exports": {
77
".": "./src/mod.ts"

typescript-sdk/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unionlabs/client",
3-
"version": "0.0.24",
3+
"version": "0.0.25",
44
"homepage": "https://jsr.io/@union/client",
55
"description": "Union Labs cross-chain transfers client",
66
"type": "module",
@@ -27,7 +27,7 @@
2727
"test": "vitest --run",
2828
"test:typecheck": "vitest --typecheck.only",
2929
"clean": "rm -rf dist node_modules",
30-
"postinstall": "npm_config_yes=true npx patch-package@latest",
30+
"postinstall": "patch-package",
3131
"prepublish": "bun run build"
3232
},
3333
"dependencies": {
@@ -37,6 +37,7 @@
3737
"@cosmjs/stargate": "0.32.4",
3838
"@cosmjs/amino": "^0.32.4",
3939
"@scure/base": "^1.1.8",
40+
"patch-package": "^8.0.0",
4041
"neverthrow": "^8.0.0",
4142
"ofetch": "^1.3.4",
4243
"viem": "^2.21.8"
@@ -49,7 +50,6 @@
4950
"consola": "^3.2.3",
5051
"cosmjs-types": "^0.9.0",
5152
"jsr": "^0.13.2",
52-
"patch-package": "^8.0.0",
5353
"tsup": "^8.3.0",
5454
"tsx": "^4.19.1",
5555
"typescript": "^5.6.2",

0 commit comments

Comments
 (0)