Build composable Camino packages with explicit type and source dependencies
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
pkgs,
|
||||
context,
|
||||
src,
|
||||
members,
|
||||
dependencies ? null,
|
||||
}:
|
||||
let
|
||||
config = pkgs.writeText "camino-react-contracts.json" (
|
||||
builtins.toJSON {
|
||||
source = src;
|
||||
interface = context.interface;
|
||||
inherit members dependencies;
|
||||
node = "${pkgs.nodejs_24}/bin/node";
|
||||
tsc = "${context.typescript}/node_modules/typescript/bin/tsc";
|
||||
}
|
||||
);
|
||||
in
|
||||
pkgs.runCommand "camino-react-contracts" { } ''
|
||||
${pkgs.nodejs_24}/bin/node ${./.}/build-react-contracts.mjs ${config}
|
||||
''
|
||||
Reference in New Issue
Block a user