Skip to content

Commit 1d806a1

Browse files
author
jared
committed
Refactored lbf-typescript to return the tgz file directly
1 parent 5986a31 commit 1d806a1

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed

docs/typescript-plutus/api/lbf/build.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _:
22
{
33
perSystem = { config, ... }:
44
let
5-
tsFlake =
5+
lbf-plutus-sample-project-typescript =
66
config.lbf-nix.lbfPlutusTypescript {
77
name = "lbf-plutus-sample-project";
88
src = ./.;
@@ -11,7 +11,7 @@ _:
1111
in
1212
{
1313
packages = {
14-
inherit (tsFlake.packages) lbf-plutus-sample-project-typescript lbf-plutus-sample-project-typescript-tgz;
14+
inherit lbf-plutus-sample-project-typescript;
1515
};
1616
};
1717
}

docs/typescript-plutus/build.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
src = ./.;
1111

1212
npmExtraDependencies = [
13-
config.packages.lbf-plutus-sample-project-typescript-tgz
13+
config.packages.lbf-plutus-sample-project-typescript
1414
];
1515

1616
devShellTools = config.settings.shell.tools;

docs/typescript-prelude/api/lbf/build.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _:
22
{
33
perSystem = { config, ... }:
44
let
5-
tsFlake =
5+
lbf-prelude-sample-project-typescript =
66
config.lbf-nix.lbfPreludeTypescript {
77
name = "lbf-prelude-sample-project";
88
src = ./.;
@@ -11,7 +11,7 @@ _:
1111
in
1212
{
1313
packages = {
14-
inherit (tsFlake.packages) lbf-prelude-sample-project-typescript lbf-prelude-sample-project-typescript-tgz;
14+
inherit lbf-prelude-sample-project-typescript;
1515
};
1616
};
1717
}

docs/typescript-prelude/build.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name = "prelude-sample-project";
1010
src = ./.;
1111
npmExtraDependencies = [
12-
config.packages.lbf-prelude-sample-project-typescript-tgz
12+
config.packages.lbf-prelude-sample-project-typescript
1313
];
1414

1515
devShellTools = config.settings.shell.tools;

extras/lbf-nix/lbf-typescript.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ let
276276
});
277277
});
278278
in
279-
lbTypescriptFlake
279+
lbTypescriptFlake.packages."${name}-typescript-tgz"

libs/build.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
configs = [ "${config.packages.codegen-configs}/purescript-prelude-base.json" ];
2929
};
3030

31-
lbf-prelude-typescript = (config.lbf-nix.lbfTypescript {
31+
lbf-prelude-typescript = config.lbf-nix.lbfTypescript {
3232
name = "lbf-prelude";
3333
src = ./lbf-prelude;
3434
files = [ "Prelude.lbf" ];
@@ -38,7 +38,7 @@
3838
[
3939
config.packages.lbr-prelude-typescript-tgz
4040
];
41-
}).packages.lbf-prelude-typescript-tgz;
41+
};
4242

4343
lbf-prelude-plutarch = config.lbf-nix.lbfPlutarch' {
4444
name = "lbf-prelude-plutarch";
@@ -108,7 +108,7 @@
108108
];
109109
};
110110

111-
lbf-plutus-typescript = (config.lbf-nix.lbfTypescript {
111+
lbf-plutus-typescript = config.lbf-nix.lbfTypescript {
112112
name = "lbf-plutus";
113113
src = ./lbf-plutus;
114114
files = [ "Plutus/V1.lbf" "Plutus/V2.lbf" ];
@@ -123,7 +123,7 @@
123123
config.packages.lbf-prelude-typescript
124124
config.packages.lbr-plutus-typescript-tgz
125125
];
126-
}).packages.lbf-plutus-typescript-tgz;
126+
};
127127

128128
lbf-plutus-rust = config.lbf-nix.lbfRust {
129129
name = "lbf-plutus";

testsuites/lbt-plutus/api/build.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ _: {
2626
files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ];
2727
};
2828

29-
lbf-plutus-golden-api-typescript = (config.lbf-nix.lbfPlutusTypescript {
29+
lbf-plutus-golden-api-typescript = config.lbf-nix.lbfPlutusTypescript {
3030
name = "lbf-plutus-golden-api";
3131
src = ./.;
3232
files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ];
33-
}).packages.lbf-plutus-golden-api-typescript-tgz
34-
;
33+
};
3534

3635
};
3736
};

testsuites/lbt-prelude/api/build.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ _: {
2020
files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ];
2121
};
2222

23-
lbf-prelude-golden-api-typescript = (config.lbf-nix.lbfPreludeTypescript {
23+
lbf-prelude-golden-api-typescript = config.lbf-nix.lbfPreludeTypescript {
2424
name = "lbf-prelude-golden-api";
2525
src = ./.;
2626
files = [ "Foo.lbf" "Foo/Bar.lbf" "Days.lbf" ];
27-
}).packages.lbf-prelude-golden-api-typescript-tgz;
27+
};
2828
};
2929
};
3030
}

0 commit comments

Comments
 (0)